Class CDIObjectFactory

  • All Implemented Interfaces:
    org.atmosphere.cpr.AtmosphereObjectFactory<java.lang.Object>, org.atmosphere.inject.AtmosphereConfigAware

    public class CDIObjectFactory
    extends java.lang.Object
    implements org.atmosphere.cpr.AtmosphereObjectFactory<java.lang.Object>
    CDI support for injecting object
    Author:
    Jeanfrancois Arcand
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.atmosphere.cpr.AtmosphereObjectFactory allowInjectionOf​(java.lang.Object o)  
      void configure​(org.atmosphere.cpr.AtmosphereConfig config)  
      <T,​U extends T>
      U
      newClassInstance​(java.lang.Class<T> classType, java.lang.Class<U> classToInstantiate)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • CDIObjectFactory

        public CDIObjectFactory()
    • 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:
        newClassInstance in interface org.atmosphere.cpr.AtmosphereObjectFactory<java.lang.Object>
        Throws:
        java.lang.InstantiationException
        java.lang.IllegalAccessException
      • allowInjectionOf

        public org.atmosphere.cpr.AtmosphereObjectFactory allowInjectionOf​(java.lang.Object o)
        Specified by:
        allowInjectionOf in interface org.atmosphere.cpr.AtmosphereObjectFactory<java.lang.Object>
      • toString

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

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