|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceProvider
ResourceProvider controls the life-cycle of the JAX-RS root resources.
| Method Summary | |
|---|---|
Object |
getInstance(Message m)
Returns the resource instance which will handle the current request |
Class<?> |
getResourceClass()
Returns the Class of the resource |
boolean |
isSingleton()
Indicates if the managed resource is a singleton |
void |
releaseInstance(Message m,
Object o)
Releases the resource instance if needed |
| Method Detail |
|---|
Object getInstance(Message m)
m - the current request message
void releaseInstance(Message m,
Object o)
m - the current request messageo - resource instanceClass<?> getResourceClass()
boolean isSingleton()
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||