org.skyscreamer.yoga.resteasy.util
Class RESTEasySpringListener

java.lang.Object
  extended by org.skyscreamer.yoga.resteasy.util.RESTEasySpringListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.context.event.SmartApplicationListener, org.springframework.core.Ordered

public class RESTEasySpringListener
extends Object
implements org.springframework.context.event.SmartApplicationListener


Field Summary
protected  org.jboss.resteasy.core.Dispatcher dispatcher
           
protected  org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory
           
protected  org.jboss.resteasy.spi.Registry registry
           
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
RESTEasySpringListener()
           
 
Method Summary
protected  Class<?> getBeanClass(org.springframework.beans.factory.config.BeanDefinition beanDef)
           
 int getOrder()
           
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
 boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
           
 boolean supportsSourceType(Class<?> sourceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registry

@Autowired
protected org.jboss.resteasy.spi.Registry registry

providerFactory

@Autowired
protected org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory

dispatcher

@Autowired
protected org.jboss.resteasy.core.Dispatcher dispatcher
Constructor Detail

RESTEasySpringListener

public RESTEasySpringListener()
Method Detail

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>

getBeanClass

protected Class<?> getBeanClass(org.springframework.beans.factory.config.BeanDefinition beanDef)

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered

supportsEventType

public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
Specified by:
supportsEventType in interface org.springframework.context.event.SmartApplicationListener

supportsSourceType

public boolean supportsSourceType(Class<?> sourceType)
Specified by:
supportsSourceType in interface org.springframework.context.event.SmartApplicationListener


Copyright © 2012. All Rights Reserved.