org.atmosphere.cpr
Interface AtmosphereObjectFactory

All Known Implementing Classes:
AtmosphereFramework.DefaultAtmosphereObjectFactory

public interface AtmosphereObjectFactory

Customization point for Atmosphere to instantiate classes. Useful when using a DI framework.

Author:
Norman Franke, Jeanfrancois Arcand

Method Summary
<T,U extends T>
T
newClassInstance(AtmosphereFramework framework, Class<T> classType, Class<U> defaultType)
          Delegate the creation of Object to the underlying object provider like Spring, Guice, etc.
 

Method Detail

newClassInstance

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

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.