Class PackageRegistriesImpl.RegistriesImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Map<String,​org.apache.jackrabbit.vault.packaging.registry.PackageRegistry> registries  
      protected org.apache.sling.api.resource.ResourceResolver resolver  
    • Constructor Summary

      Constructors 
      Constructor Description
      RegistriesImpl​(org.apache.sling.api.resource.ResourceResolver resolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void add​(org.apache.jackrabbit.vault.packaging.registry.PackageRegistry registry)  
      Collection<String> getNamespaces()  
      org.apache.jackrabbit.vault.packaging.registry.PackageRegistry getRegistry​(String namespaceOrPath)
      Gives the PackageRegistry for a namespace (e.g.
      Collection<org.apache.jackrabbit.vault.packaging.registry.PackageRegistry> iterable()  
      org.apache.commons.lang3.tuple.Pair<String,​org.apache.jackrabbit.vault.packaging.registry.RegisteredPackage> open​(org.apache.jackrabbit.vault.packaging.PackageId id)
      Opens a RegisteredPackage - remember to close it (AutoCloseable).
      protected org.apache.jackrabbit.vault.packaging.Dependency pathToDependency​(String path)
      Creates a matcher from either group/package or group/package/version.
      org.apache.commons.lang3.tuple.Pair<String,​org.apache.jackrabbit.vault.packaging.PackageId> resolve​(String rawPath)
      Finds the namespace and package that matches the given path.
      org.apache.commons.lang3.tuple.Pair<String,​org.apache.jackrabbit.vault.packaging.PackageId> resolve​(String namespace, org.apache.jackrabbit.vault.packaging.PackageId packageId)
      Checks whether there is actually package with that id in the registry, looking through the registries if no namespace is given.
      org.apache.commons.lang3.tuple.Pair<org.apache.jackrabbit.vault.packaging.registry.PackageRegistry,​org.apache.jackrabbit.vault.packaging.PackageId> resolve​(org.apache.jackrabbit.vault.packaging.Dependency dependency, boolean onlyInstalled)
      Finds the best PackageId that matches the dependency filter, if there is one.
    • Field Detail

      • resolver

        protected final org.apache.sling.api.resource.ResourceResolver resolver
      • registries

        protected final Map<String,​org.apache.jackrabbit.vault.packaging.registry.PackageRegistry> registries
    • Constructor Detail

      • RegistriesImpl

        public RegistriesImpl​(org.apache.sling.api.resource.ResourceResolver resolver)