Package org.atmosphere.spring
Class SpringWebObjectFactory
- java.lang.Object
-
- org.atmosphere.spring.SpringWebObjectFactory
-
- All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereObjectFactory<java.lang.Class<?>>,org.atmosphere.inject.AtmosphereConfigAware
public class SpringWebObjectFactory extends java.lang.Object implements org.atmosphere.cpr.AtmosphereObjectFactory<java.lang.Class<?>>AnAtmosphereObjectFactoryfor Spring to be used in Servlet Base Java Apps.- Author:
- Aparup Banerjee
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATMOSPHERE_SPRING_EXCLUDE_CLASSESA comma delimited list oforg.atmosphere.inject.InjectableObjectFactory.DEFAULT_ATMOSPHERE_INJECTABLEthat won't be created by Spring.protected booleanpreventSpringInjection
-
Constructor Summary
Constructors Constructor Description SpringWebObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.atmosphere.cpr.AtmosphereObjectFactoryallowInjectionOf(java.lang.Class<?> aClass)voidconfigure(org.atmosphere.cpr.AtmosphereConfig config)<T,U extends T>
UnewClassInstance(java.lang.Class<T> classType, java.lang.Class<U> classToInstantiate)java.lang.StringtoString()
-
-
-
Field Detail
-
ATMOSPHERE_SPRING_EXCLUDE_CLASSES
public static final java.lang.String ATMOSPHERE_SPRING_EXCLUDE_CLASSES
A comma delimited list oforg.atmosphere.inject.InjectableObjectFactory.DEFAULT_ATMOSPHERE_INJECTABLEthat won't be created by Spring.- See Also:
- Constant Field Values
-
preventSpringInjection
protected boolean preventSpringInjection
-
-
Method Detail
-
newClassInstance
public <T,U extends T> U newClassInstance(java.lang.Class<T> classType, java.lang.Class<U> classToInstantiate) throws java.lang.InstantiationException, java.lang.IllegalAccessException- Specified by:
newClassInstancein interfaceorg.atmosphere.cpr.AtmosphereObjectFactory<java.lang.Class<?>>- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessException
-
allowInjectionOf
public org.atmosphere.cpr.AtmosphereObjectFactory allowInjectionOf(java.lang.Class<?> aClass)
- Specified by:
allowInjectionOfin interfaceorg.atmosphere.cpr.AtmosphereObjectFactory<java.lang.Class<?>>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
configure
public void configure(org.atmosphere.cpr.AtmosphereConfig config)
- Specified by:
configurein interfaceorg.atmosphere.inject.AtmosphereConfigAware
-
-