Class AtmosphereFramework.DefaultAtmosphereObjectFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AtmosphereObjectFactory<java.lang.Object> allowInjectionOf​(java.lang.Object o)
      Pass information to the underlying Dependency Injection Implementation
      void configure​(AtmosphereConfig config)
      Configure an AtmosphereFramework object.
      <T,​U extends T>
      U
      newClassInstance​(java.lang.Class<T> classType, java.lang.Class<U> defaultType)
      Delegate the creation of Object to the underlying object provider like Spring, Guice, etc.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultAtmosphereObjectFactory

        public DefaultAtmosphereObjectFactory()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • newClassInstance

        public <T,​U extends T> U newClassInstance​(java.lang.Class<T> classType,
                                                        java.lang.Class<U> defaultType)
                                                 throws java.lang.InstantiationException,
                                                        java.lang.IllegalAccessException
        Description copied from interface: AtmosphereObjectFactory
        Delegate the creation of Object to the underlying object provider like Spring, Guice, etc. When creating a class, it is important to check if the class can be configured via its implementation of the AtmosphereConfigAware. AtmosphereConfigAware.configure(AtmosphereConfig) should be called in that case.
        Specified by:
        newClassInstance in interface AtmosphereObjectFactory<java.lang.Object>
        Parameters:
        classType - The class' type to be created
        defaultType - a class to be created @return an instance of T
        Throws:
        java.lang.InstantiationException
        java.lang.IllegalAccessException