All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.atmosphere.cpr.AtmosphereObjectFactory Maven / Gradle / Ivy

package org.atmosphere.cpr;

/**
 * Customization point for Atmosphere to instantiate classes.
 * Useful when using a DI framework.
 *
 * @author Norman Franke
 * @author Jeanfrancois Arcand
 */
public interface AtmosphereObjectFactory {
    /**
     * Delegate the creation of Object to the underlying object provider like Spring, Guice, etc.
     *
     *
     * @param framework {@link org.atmosphere.cpr.AtmosphereFramework}
     * @param classType The class' type to be created
     * @param defaultType a class to be created  @return  an instance of T
     * @throws InstantiationException
     * @throws IllegalAccessException
     */
	public  T newClassInstance(AtmosphereFramework framework, Class classType, Class defaultType) throws InstantiationException, IllegalAccessException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy