public interface AtmosphereObjectFactory<Z> extends AtmosphereConfigAware
Modifier and Type | Method and Description |
---|---|
AtmosphereObjectFactory |
allowInjectionOf(Z z)
Pass information to the underlying Dependency Injection Implementation
|
<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.
|
configure
<T,U extends T> T newClassInstance(Class<T> classType, Class<U> defaultType) throws InstantiationException, IllegalAccessException
AtmosphereConfigAware
. AtmosphereConfigAware.configure(AtmosphereConfig)
should be called in that case.classType
- The class' type to be createddefaultType
- a class to be created @return an instance of TInstantiationException
IllegalAccessException
AtmosphereObjectFactory allowInjectionOf(Z z)
z
- an ZCopyright © 2016. All rights reserved.