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
newClassInstance
<T> T newClassInstance(AtmosphereFramework framework,
Class<T> classToInstantiate)
throws InstantiationException,
IllegalAccessException
- Delegate the creation of Object to the underlying object provider like Spring, Guice, etc.
- Type Parameters:
T - The Class- Parameters:
framework - AtmosphereFrameworkclassToInstantiate - a class to be created
- Returns:
- an instance of T
- Throws:
InstantiationException
IllegalAccessException
Copyright © 2013. All Rights Reserved.