org.atmosphere.spring
Class SpringWebObjectFactory

java.lang.Object
  extended by org.atmosphere.spring.SpringWebObjectFactory
All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereObjectFactory<Class<?>>, org.atmosphere.inject.AtmosphereConfigAware

public class SpringWebObjectFactory
extends Object
implements org.atmosphere.cpr.AtmosphereObjectFactory<Class<?>>

An AtmosphereObjectFactory for Spring to be used in Servlet Base Java Apps.

Author:
Aparup Banerjee

Field Summary
static String ATMOSPHERE_SPRING_EXCLUDE_CLASSES
          A comma delimited list of org.atmosphere.inject.InjectableObjectFactory.DEFAULT_ATMOSPHERE_INJECTABLE that won't be created by Spring.
protected  boolean preventSpringInjection
           
 
Constructor Summary
SpringWebObjectFactory()
           
 
Method Summary
 org.atmosphere.cpr.AtmosphereObjectFactory allowInjectionOf(Class<?> aClass)
           
 void configure(org.atmosphere.cpr.AtmosphereConfig config)
           
<T,U extends T>
U
newClassInstance(Class<T> classType, Class<U> classToInstantiate)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATMOSPHERE_SPRING_EXCLUDE_CLASSES

public static final String ATMOSPHERE_SPRING_EXCLUDE_CLASSES
A comma delimited list of org.atmosphere.inject.InjectableObjectFactory.DEFAULT_ATMOSPHERE_INJECTABLE that won't be created by Spring.

See Also:
Constant Field Values

preventSpringInjection

protected boolean preventSpringInjection
Constructor Detail

SpringWebObjectFactory

public SpringWebObjectFactory()
Method Detail

newClassInstance

public <T,U extends T> U newClassInstance(Class<T> classType,
                                          Class<U> classToInstantiate)
                             throws InstantiationException,
                                    IllegalAccessException
Specified by:
newClassInstance in interface org.atmosphere.cpr.AtmosphereObjectFactory<Class<?>>
Throws:
InstantiationException
IllegalAccessException

allowInjectionOf

public org.atmosphere.cpr.AtmosphereObjectFactory allowInjectionOf(Class<?> aClass)
Specified by:
allowInjectionOf in interface org.atmosphere.cpr.AtmosphereObjectFactory<Class<?>>

toString

public String toString()
Overrides:
toString in class Object

configure

public void configure(org.atmosphere.cpr.AtmosphereConfig config)
Specified by:
configure in interface org.atmosphere.inject.AtmosphereConfigAware


Copyright © 2015. All Rights Reserved.