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 Details

    • ATMOSPHERE_SPRING_EXCLUDE_CLASSES

      public static final String ATMOSPHERE_SPRING_EXCLUDE_CLASSES
      A comma delimited list of
      invalid reference
      org.atmosphere.inject.InjectableObjectFactory.DEFAULT_ATMOSPHERE_INJECTABLE
      that won't be created by Spring.
      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:
      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