Class MapInjectionResources
- java.lang.Object
- 
- org.apache.tapestry5.ioc.internal.util.MapInjectionResources
 
- 
- All Implemented Interfaces:
- InjectionResources
 
 public class MapInjectionResources extends java.lang.Object implements InjectionResources InjectionDefaultProvider that operates using a Map from type to value.
- 
- 
Constructor SummaryConstructors Constructor Description MapInjectionResources(java.util.Map<java.lang.Class,java.lang.Object> map)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TfindResource(java.lang.Class<T> type, java.lang.reflect.Type genericType)Given the field type, provide the matching resource value, or null.
 
- 
- 
- 
Constructor Detail- 
MapInjectionResourcespublic MapInjectionResources(java.util.Map<java.lang.Class,java.lang.Object> map) 
 
- 
 - 
Method Detail- 
findResourcepublic <T> T findResource(java.lang.Class<T> type, java.lang.reflect.Type genericType) Description copied from interface:InjectionResourcesGiven the field type, provide the matching resource value, or null.- Specified by:
- findResourcein interface- InjectionResources
- Parameters:
- type- type of field or parameter
- genericType- generic type information associated with field or parameter
- Returns:
- the corresponding value, or null
 
 
- 
 
-