| org.apache.cxf.resource.ResourceManager
All known Subclasses: org.apache.cxf.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<ResourceResolver> getResourceResolvers()(Code) | | Get all the currently registered resolvers. This method should return
a copy of the list of resolvers so that resolvers added after this method
has been called will alter the list returned.
|
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. |
resolveResource | T resolveResource(String name, Class<T> type, List<ResourceResolver> resolvers)(Code) | | Resolve a resource with via a specified list of resovlers. This allows
resources to be specified with a locally defined list of resolvers.
Parameters: name - name of resource to resolve. Parameters: type - type of resource to resolve. Parameters: resolvers - list of ResourceResolvers to search. the resolved resource or null if nothing found. |
|
|