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,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 - AtmosphereFrameworkclassType - The class' type to be createddefaultType - a class to be created @return an instance of T
- Throws:
InstantiationException
IllegalAccessException
Copyright © 2014. All Rights Reserved.