Package org.analogweb
Interface ContainerAdaptor
-
- All Superinterfaces:
Module
- All Known Implementing Classes:
SingletonInstanceContainerAdaptor
,StaticMappingContainerAdaptor
public interface ContainerAdaptor extends Module
Facade of a instance container like Spring,Guice,CDI and so on.- Author:
- snowgoose
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
getInstanceOfType(Class<T> type)
Obtain required type instance from container.<T> List<T>
getInstancesOfType(Class<T> type)
Obtain required type instances from container.
-
-
-
Method Detail
-
getInstanceOfType
<T> T getInstanceOfType(Class<T> type)
Obtain required type instance from container.- Parameters:
type
- required type.- Returns:
- a instance on container.
-
-