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