Package org.atmosphere.guice
Class GuiceObjectFactory
- java.lang.Object
-
- org.atmosphere.guice.GuiceObjectFactory
-
- All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereObjectFactory<com.google.inject.AbstractModule>,org.atmosphere.inject.AtmosphereConfigAware
public class GuiceObjectFactory extends java.lang.Object implements org.atmosphere.cpr.AtmosphereObjectFactory<com.google.inject.AbstractModule>AnAtmosphereObjectFactoryfor Guice- Author:
- Jean-Francois Arcand
-
-
Constructor Summary
Constructors Constructor Description GuiceObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.atmosphere.cpr.AtmosphereObjectFactoryallowInjectionOf(com.google.inject.AbstractModule module)voidconfigure(org.atmosphere.cpr.AtmosphereConfig config)protected voidinitInjector(org.atmosphere.cpr.AtmosphereFramework framework)<T,U extends T>
UnewClassInstance(java.lang.Class<T> classType, java.lang.Class<U> classToInstantiate)java.lang.StringtoString()
-
-
-
Method Detail
-
configure
public void configure(org.atmosphere.cpr.AtmosphereConfig config)
- Specified by:
configurein interfaceorg.atmosphere.inject.AtmosphereConfigAware
-
newClassInstance
public <T,U extends T> U newClassInstance(java.lang.Class<T> classType, java.lang.Class<U> classToInstantiate) throws java.lang.InstantiationException, java.lang.IllegalAccessException- Specified by:
newClassInstancein interfaceorg.atmosphere.cpr.AtmosphereObjectFactory<com.google.inject.AbstractModule>- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
initInjector
protected void initInjector(org.atmosphere.cpr.AtmosphereFramework framework)
-
allowInjectionOf
public org.atmosphere.cpr.AtmosphereObjectFactory allowInjectionOf(com.google.inject.AbstractModule module)
- Specified by:
allowInjectionOfin interfaceorg.atmosphere.cpr.AtmosphereObjectFactory<com.google.inject.AbstractModule>
-
-