Package org.int4.dirk.core.definition
Class InjectionTargetExtensionStore
- java.lang.Object
-
- org.int4.dirk.core.definition.InjectionTargetExtensionStore
-
public class InjectionTargetExtensionStore extends java.lang.ObjectA store forInjectionTargetExtensions.
-
-
Constructor Summary
Constructors Constructor Description InjectionTargetExtensionStore(java.util.Collection<InjectionTargetExtension<?,?>> extensions)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,E>
InjectionTargetExtension<T,E>getExtension(java.lang.Class<T> cls)Gets theInjectionTargetExtensionwhich handles the givenClass.
-
-
-
Constructor Detail
-
InjectionTargetExtensionStore
public InjectionTargetExtensionStore(java.util.Collection<InjectionTargetExtension<?,?>> extensions)
Constructs a new instance.- Parameters:
extensions- a collection ofInjectionTargetExtensions, cannot benullbut can be empty
-
-
Method Detail
-
getExtension
public <T,E> InjectionTargetExtension<T,E> getExtension(java.lang.Class<T> cls)
Gets theInjectionTargetExtensionwhich handles the givenClass. A default extension is returned for any targets that were not specifically configured.- Type Parameters:
T- the type handled by the extensionE- the element type handled by the extension- Parameters:
cls- aClass, cannot benull- Returns:
- an
InjectionTargetExtension, nevernull
-
-