org.atmosphere.cdi
Class CDIObjectFactory
java.lang.Object
org.atmosphere.cdi.CDIObjectFactory
- All Implemented Interfaces:
- org.atmosphere.cpr.AtmosphereObjectFactory<Object>, org.atmosphere.inject.AtmosphereConfigAware
public class CDIObjectFactory
- extends Object
- implements org.atmosphere.cpr.AtmosphereObjectFactory<Object>
CDI support for injecting object
- Author:
- Jeanfrancois Arcand
CDIObjectFactory
public CDIObjectFactory()
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<Object>
- Throws:
InstantiationException
IllegalAccessException
allowInjectionOf
public org.atmosphere.cpr.AtmosphereObjectFactory allowInjectionOf(Object o)
- Specified by:
allowInjectionOf in interface org.atmosphere.cpr.AtmosphereObjectFactory<Object>
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
Copyright © 2015. All Rights Reserved.