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)
AtmosphereConfigAwareconfigure in interface AtmosphereConfigAwareconfig - AtmosphereConfigpublic <T,U extends T> U newClassInstance(Class<T> classType, Class<U> defaultType) throws InstantiationException, IllegalAccessException
AtmosphereObjectFactoryAtmosphereConfigAware. 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 TInstantiationExceptionIllegalAccessExceptionpublic AtmosphereObjectFactory allowInjectionOf(Object o)
AtmosphereObjectFactoryallowInjectionOf in interface AtmosphereObjectFactory<Object>o - an ZCopyright © 2016. All rights reserved.