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