public static class AtmosphereFramework.DefaultAtmosphereObjectFactory extends Object implements AtmosphereObjectFactory<Object>
Constructor and Description |
---|
DefaultAtmosphereObjectFactory() |
Modifier and Type | Method and Description |
---|---|
AtmosphereObjectFactory |
allowInjectionOf(Object o)
Pass information to the underlying Dependency Injection Implementation
|
void |
configure(AtmosphereConfig config)
Configure an AtmosphereFramework object.
|
<T,U extends T> |
newClassInstance(Class<T> classType,
Class<U> defaultType)
Delegate the creation of Object to the underlying object provider like Spring, Guice, etc.
|
String |
toString() |
public void configure(AtmosphereConfig config)
AtmosphereConfigAware
configure
in interface AtmosphereConfigAware
config
- AtmosphereConfig
public <T,U extends T> U newClassInstance(Class<T> classType, Class<U> defaultType) throws InstantiationException, IllegalAccessException
AtmosphereObjectFactory
AtmosphereConfigAware
. AtmosphereConfigAware.configure(AtmosphereConfig)
should be called in that case.newClassInstance
in interface AtmosphereObjectFactory<Object>
classType
- The class' type to be createddefaultType
- a class to be created @return an instance of TInstantiationException
IllegalAccessException
public AtmosphereObjectFactory allowInjectionOf(Object o)
AtmosphereObjectFactory
allowInjectionOf
in interface AtmosphereObjectFactory<Object>
o
- an ZCopyright © 2016. All rights reserved.