|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resteasy.plugins.guice.GuiceResourceFactory
public class GuiceResourceFactory
Constructor Summary | |
---|---|
GuiceResourceFactory(com.google.inject.Provider provider,
java.lang.Class<?> scannableClass)
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiceResourceFactory(com.google.inject.Provider provider, java.lang.Class<?> scannableClass)
Method Detail |
---|
public java.lang.Class<?> getScannableClass()
ResourceFactory
getScannableClass
in interface ResourceFactory
public void registered(InjectorFactory factory)
ResourceFactory
registered
in interface ResourceFactory
factory
- allows singleton factories to pre-inject things like @Context references into the singleton instancepublic java.lang.Object createResource(HttpRequest request, HttpResponse response, InjectorFactory factory)
ResourceFactory
createResource
in interface ResourceFactory
public void requestFinished(HttpRequest request, HttpResponse response, java.lang.Object resource)
ResourceFactory
requestFinished
in interface ResourceFactory
public void unregistered()
unregistered
in interface ResourceFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |