|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AtmosphereObjectFactory<Z>
Customization point for Atmosphere to instantiate classes. Useful when using a DI framework.
| Method Summary | ||
|---|---|---|
AtmosphereObjectFactory |
allowInjectionOf(Z z)
Pass information to the underlying Dependency Injection Implementation |
|
|
newClassInstance(Class<T> classType,
Class<U> defaultType)
Delegate the creation of Object to the underlying object provider like Spring, Guice, etc. |
|
| Methods inherited from interface org.atmosphere.inject.AtmosphereConfigAware |
|---|
configure |
| Method Detail |
|---|
<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 T
InstantiationException
IllegalAccessExceptionAtmosphereObjectFactory allowInjectionOf(Z z)
z - an Z
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||