|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceProvider
A provider that manages the creation of resource class instances. A provider instance is specific to a particular class of a resource.
It is the responsibility of a ResourceProvider to perform injection onto
the properties of a resource. If injection is required then declare an
injectable field of the type InjectableProviderContext annotated
with Context and create a
ResourceClassInjector instance to be used to perform injection onto
the provided resource. This may be performed in the init method.
| Method Summary | |
|---|---|
java.lang.Object |
getInstance(ComponentProvider provider,
HttpContext context)
Called to obtain an instance of a resource class. |
void |
init(ComponentProvider provider,
ComponentProvider resourceProvider,
AbstractResource resource)
Specifies the class of the resource that the provider instance will manage access to. |
| Method Detail |
|---|
void init(ComponentProvider provider,
ComponentProvider resourceProvider,
AbstractResource resource)
provider - the component providerresourceProvider - the component provider for resource classesresource - the abstract resource
java.lang.Object getInstance(ComponentProvider provider,
HttpContext context)
provider - the component providercontext - the HTTP context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||