org.analogweb.ContainerAdaptor Maven / Gradle / Ivy
package org.analogweb;
import java.util.List;
/**
* Facade of a instance container like Spring,Guice,CDI and so on.
*
* @author snowgoose
*/
public interface ContainerAdaptor extends Module {
/**
* Obtain required type instance from container.
*
* @param type
* required type.
*
* @return a instance on container.
*/
T getInstanceOfType(Class type);
/**
* Obtain required type instances from container.
*
* @param type
* required type.
*
* @return instances on container.
*/
List getInstancesOfType(Class type);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy