|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceContext
The resource context provides access to instances of resource classes.
This interface can be injected using the Context
annotation.
The resource context can be utilized when instances of managed resource classes are to be returned by sub-resource locator methods. Such instances will be injected and managed within the declared scope just like instances of root resource classes.
Method Summary | ||
---|---|---|
|
getResource(java.lang.Class<T> c)
Provides an instance of the given resource class. |
Method Detail |
---|
<T> T getResource(java.lang.Class<T> c) throws ContainerException
T
- the type of the resource classc
- the resource class
ContainerException
- if the resource
class cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |