org.jboss.resteasy.plugins.spring
Class SpringResourceFactory
java.lang.Object
org.jboss.resteasy.plugins.spring.SpringResourceFactory
- All Implemented Interfaces:
- ResourceFactory
public class SpringResourceFactory
- extends java.lang.Object
- implements ResourceFactory
- Version:
- $Revision: 1 $
- Author:
- Solomn Duskis
Constructor Summary |
SpringResourceFactory(java.lang.String beanName,
org.springframework.beans.factory.BeanFactory beanFactory,
java.lang.Class<?> scannable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beanFactory
protected org.springframework.beans.factory.BeanFactory beanFactory
beanName
protected java.lang.String beanName
scannableClass
protected java.lang.Class<?> scannableClass
propertyInjector
protected PropertyInjector propertyInjector
SpringResourceFactory
public SpringResourceFactory(java.lang.String beanName,
org.springframework.beans.factory.BeanFactory beanFactory,
java.lang.Class<?> scannable)
getPropertyInjector
public PropertyInjector getPropertyInjector()
createResource
public java.lang.Object createResource(HttpRequest request,
HttpResponse response,
InjectorFactory factory)
- Description copied from interface:
ResourceFactory
- Called per request to obtain a resource instance to invoke http request on.
- Specified by:
createResource
in interface ResourceFactory
- Returns:
getScannableClass
public java.lang.Class<?> getScannableClass()
- Description copied from interface:
ResourceFactory
- Class to scan for jax-rs annotations
- Specified by:
getScannableClass
in interface ResourceFactory
- Returns:
registered
public void registered(InjectorFactory factory)
- Description copied from interface:
ResourceFactory
- Callback after registration has been completed.
- Specified by:
registered
in interface ResourceFactory
- Parameters:
factory
- allows singleton factories to pre-inject things like @Context references into the singleton instance
requestFinished
public void requestFinished(HttpRequest request,
HttpResponse response,
java.lang.Object resource)
- Description copied from interface:
ResourceFactory
- Callback when request is finished. usable for things like @PreDestroy if the underlying factory supports it
- Specified by:
requestFinished
in interface ResourceFactory
unregistered
public void unregistered()
- Specified by:
unregistered
in interface ResourceFactory
Copyright © 2010. All Rights Reserved.