Package org.atmosphere.spring
Class SpringWebObjectFactory
java.lang.Object
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
FieldsModifier and TypeFieldDescriptionstatic final StringA comma delimited list ofthat won't be created by Spring.invalid reference
org.atmosphere.inject.InjectableObjectFactory.DEFAULT_ATMOSPHERE_INJECTABLEprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.atmosphere.cpr.AtmosphereObjectFactoryallowInjectionOf(Class<?> aClass) voidconfigure(org.atmosphere.cpr.AtmosphereConfig config) <T,U extends T>
UnewClassInstance(Class<T> classType, Class<U> classToInstantiate) toString()
-
Field Details
-
ATMOSPHERE_SPRING_EXCLUDE_CLASSES
A comma delimited list ofthat won't be created by Spring.invalid reference
org.atmosphere.inject.InjectableObjectFactory.DEFAULT_ATMOSPHERE_INJECTABLE- See Also:
-
preventSpringInjection
protected boolean preventSpringInjection
-
-
Constructor Details
-
SpringWebObjectFactory
public SpringWebObjectFactory()
-
-
Method Details
-
newClassInstance
public <T,U extends T> U newClassInstance(Class<T> classType, Class<U> classToInstantiate) throws InstantiationException, IllegalAccessException - Specified by:
newClassInstancein interfaceorg.atmosphere.cpr.AtmosphereObjectFactory<Class<?>>- Throws:
InstantiationExceptionIllegalAccessException
-
allowInjectionOf
- Specified by:
allowInjectionOfin interfaceorg.atmosphere.cpr.AtmosphereObjectFactory<Class<?>>
-
toString
-
configure
public void configure(org.atmosphere.cpr.AtmosphereConfig config) - Specified by:
configurein interfaceorg.atmosphere.inject.AtmosphereConfigAware
-