org.atmosphere.cpr
Class AtmosphereFramework.DefaultAtmosphereObjectFactory

java.lang.Object
  extended by org.atmosphere.cpr.AtmosphereFramework.DefaultAtmosphereObjectFactory
All Implemented Interfaces:
AtmosphereObjectFactory
Enclosing class:
AtmosphereFramework

public static class AtmosphereFramework.DefaultAtmosphereObjectFactory
extends Object
implements AtmosphereObjectFactory


Constructor Summary
AtmosphereFramework.DefaultAtmosphereObjectFactory()
           
 
Method Summary
<T,U extends T>
U
newClassInstance(AtmosphereFramework framework, Class<T> classType, Class<U> defaultType)
          Delegate the creation of Object to the underlying object provider like Spring, Guice, etc.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtmosphereFramework.DefaultAtmosphereObjectFactory

public AtmosphereFramework.DefaultAtmosphereObjectFactory()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

newClassInstance

public <T,U extends T> U newClassInstance(AtmosphereFramework framework,
                                          Class<T> classType,
                                          Class<U> defaultType)
                             throws InstantiationException,
                                    IllegalAccessException
Description copied from interface: AtmosphereObjectFactory
Delegate the creation of Object to the underlying object provider like Spring, Guice, etc.

Specified by:
newClassInstance in interface AtmosphereObjectFactory
Parameters:
framework - AtmosphereFramework
classType - The class' type to be created
defaultType - a class to be created @return an instance of T
Throws:
InstantiationException
IllegalAccessException


Copyright © 2014. All Rights Reserved.