public interface IResourceProvider
Resource providers may be declared as component itself using the component type com.zfabrik.resourceProvider
.
For example the "components query provider" (com.zfabrik.components/queryProvider
) is declared like this:
com.zfabrik.component.type=com.zfabrik.resourceProvider component.className=com.zfabrik.impl.components.query.QueryProvider resourceProvider.namespace=com.zfabrik.components.query
IResourceManager.registerProvider(String, IResourceProvider)
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
PROP_NAMESPACE |
Modifier and Type | Method | Description |
---|---|---|
Resource |
get(java.lang.String name) |
retrieve a resource.
|
void |
init(IResourceProviderContext c) |
static final java.lang.String PROP_NAMESPACE
void init(IResourceProviderContext c)
Resource get(java.lang.String name)
null
if the resource does
not exist (or will not be made available).
Throws ResourceNotAvailableException if the resource cannot be provided due to an
error situation.name
- name of the resourcenull
if the resource does
not exist (or will not be made available).ResourceNotAvailableException