org.atmosphere.cdi
Class CDIObjectFactory

java.lang.Object
  extended by org.atmosphere.cdi.CDIObjectFactory
All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereObjectFactory

public class CDIObjectFactory
extends Object
implements org.atmosphere.cpr.AtmosphereObjectFactory

CDI support for injecting object

Author:
Jeanfrancois Arcand

Constructor Summary
CDIObjectFactory()
           
 
Method Summary
<T> T
newClassInstance(org.atmosphere.cpr.AtmosphereFramework framework, Class<T> classToInstantiate)
           
 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> T newClassInstance(org.atmosphere.cpr.AtmosphereFramework framework,
                              Class<T> classToInstantiate)
                   throws InstantiationException,
                          IllegalAccessException
Specified by:
newClassInstance in interface org.atmosphere.cpr.AtmosphereObjectFactory
Throws:
InstantiationException
IllegalAccessException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.