|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory
public class POJOResourceFactory
Allocates an instance of a class at each invocation
Constructor Summary | |
---|---|
POJOResourceFactory(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 POJOResourceFactory(java.lang.Class<?> scannableClass)
Method Detail |
---|
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 unregistered()
unregistered
in interface ResourceFactory
public java.lang.Class<?> getScannableClass()
ResourceFactory
getScannableClass
in interface ResourceFactory
public void requestFinished(HttpRequest request, HttpResponse response, java.lang.Object resource)
ResourceFactory
requestFinished
in interface ResourceFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |