| org.objectweb.celtix.resource.ResourceManager
All known Subclasses: org.objectweb.celtix.resource.DefaultResourceManager,
ResourceManager | public interface ResourceManager (Code) | | Locates resources that are used at runtime. The
ResourceManager queries registered
ResourceResolver to find resources.
|
addResourceResolver | void addResourceResolver(ResourceResolver resolver)(Code) | | Add a ResourceResolver . The newly added resolver
is added at the head of the list so the most recently added
will be queried first.
Parameters: resolver - the ResourceResolver toadd. Duplicates will be ignored. |
getResourceAsStream | InputStream getResourceAsStream(String name)(Code) | | Open stream to resource.
Parameters: name - name of resource to resolve. the InputStream to the resource or null if the resourcecannot be found. |
getResourceResolvers | List getResourceResolvers()(Code) | | Get all the currently registered resolvers
|
removeResourceResolver | void removeResourceResolver(ResourceResolver resolver)(Code) | | Remove a ResourceResolver .
Parameters: resolver - the ResourceResolver to remove.If not previously registered, it is ignored. |
resolveResource | T resolveResource(String name, Class<T> type)(Code) | | Resolve a resource. The ResourceManager will query all of the
registered ResourceResovler objects until one
manages to resolve the resource
Parameters: name - name of resource to resolve. Parameters: type - type of resource to resolve. the resolved resource or null if nothing found. |
|
|