Interface IResourceManager

  • All Superinterfaces:
    IResourceLookup

    public interface IResourceManager
    extends IResourceLookup
    core manager of the resource management system. Lookups for single resources can be performed like this:
     IResourceManager.INSTANCE.lookup(<resource name>, <return type>);
     
    A namespace local lookup facility can be retrieved by a special lookup style, e.g.:
     IResourceManager.INSTANCE.lookup("com.zfabrik.components",IResourceLookup.class);
     
    Author:
    hb
    • Field Detail

      • INSTANCE

        static final IResourceManager INSTANCE
        Use as IComponentsLookup.INSTANCE to get the implementation of this interface.
    • Method Detail

      • registerProvider

        IResourceLookup registerProvider​(java.lang.String namespace,
                                         IResourceProvider prov)
        register a provider for resources of a name space.
        Parameters:
        namespace -
        prov -
        Returns:
        A IResourceLookup instance for the registered provider
      • unregisterProvider

        void unregisterProvider​(java.lang.String namespace,
                                boolean forced)
        unregister a provider for resources of a name space.
      • unregisterProviderBuilder

        void unregisterProviderBuilder​(IResourceProviderBuilder builder)
        unregister the provider builder if present
      • invalidate

        int invalidate​(java.util.Collection<java.lang.String> invs)
        mass invalidation (locking resources on the way)