public class GuiceObjectFactory
extends java.lang.Object
implements org.atmosphere.cpr.AtmosphereObjectFactory<com.google.inject.AbstractModule>
AtmosphereObjectFactory for Guice| Modifier and Type | Field and Description |
|---|---|
protected org.atmosphere.cpr.AtmosphereConfig |
config |
protected com.google.inject.Injector |
injector |
| Constructor and Description |
|---|
GuiceObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.atmosphere.cpr.AtmosphereObjectFactory |
allowInjectionOf(com.google.inject.AbstractModule module) |
void |
configure(org.atmosphere.cpr.AtmosphereConfig config) |
protected void |
initInjector(org.atmosphere.cpr.AtmosphereFramework framework) |
<T,U extends T> |
newClassInstance(java.lang.Class<T> classType,
java.lang.Class<U> classToInstantiate) |
java.lang.String |
toString() |
protected com.google.inject.Injector injector
protected org.atmosphere.cpr.AtmosphereConfig config
public void configure(org.atmosphere.cpr.AtmosphereConfig config)
configure in interface org.atmosphere.inject.AtmosphereConfigAwarepublic <T,U extends T> U newClassInstance(java.lang.Class<T> classType,
java.lang.Class<U> classToInstantiate)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
newClassInstance in interface org.atmosphere.cpr.AtmosphereObjectFactory<com.google.inject.AbstractModule>java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected void initInjector(org.atmosphere.cpr.AtmosphereFramework framework)
public org.atmosphere.cpr.AtmosphereObjectFactory allowInjectionOf(com.google.inject.AbstractModule module)
allowInjectionOf in interface org.atmosphere.cpr.AtmosphereObjectFactory<com.google.inject.AbstractModule>Copyright © 2018. All Rights Reserved.