|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceFactory
Implementations of this interface are registered through the Registry class.
Method Summary | |
---|---|
java.lang.Object |
createResource(HttpRequest request,
HttpResponse response,
InjectorFactory factory)
Called per request to obtain a resource instance to invoke http request on. |
java.lang.Class<?> |
getScannableClass()
Class to scan for jax-rs annotations |
void |
registered(InjectorFactory factory)
Callback after registration has been completed. |
void |
requestFinished(HttpRequest request,
HttpResponse response,
java.lang.Object resource)
Callback when request is finished. |
void |
unregistered()
|
Method Detail |
---|
java.lang.Class<?> getScannableClass()
void registered(InjectorFactory factory)
factory
- allows singleton factories to pre-inject things like @Context references into the singleton instancejava.lang.Object createResource(HttpRequest request, HttpResponse response, InjectorFactory factory)
request
- response
- factory
-
void requestFinished(HttpRequest request, HttpResponse response, java.lang.Object resource)
request
- response
- resource
- void unregistered()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |