org.atmosphere.guice
Class GuiceObjectFactory

java.lang.Object
  extended by org.atmosphere.guice.GuiceObjectFactory
All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereObjectFactory

public class GuiceObjectFactory
extends Object
implements org.atmosphere.cpr.AtmosphereObjectFactory

An AtmosphereObjectFactory for Guice

Author:
Jean-Francois Arcand

Constructor Summary
GuiceObjectFactory()
           
 
Method Summary
<T,U extends T>
U
newClassInstance(org.atmosphere.cpr.AtmosphereFramework framework, Class<T> classType, Class<U> classToInstantiate)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GuiceObjectFactory

public GuiceObjectFactory()
Method Detail

newClassInstance

public <T,U extends T> U newClassInstance(org.atmosphere.cpr.AtmosphereFramework framework,
                                          Class<T> classType,
                                          Class<U> classToInstantiate)
                             throws InstantiationException,
                                    IllegalAccessException
Specified by:
newClassInstance in interface org.atmosphere.cpr.AtmosphereObjectFactory
Throws:
InstantiationException
IllegalAccessException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.