public class MapInjectionResources extends java.lang.Object implements InjectionResources
Constructor and Description |
---|
MapInjectionResources(java.util.Map<java.lang.Class,java.lang.Object> map) |
Modifier and Type | Method and Description |
---|---|
<T> T |
findResource(java.lang.Class<T> type,
java.lang.reflect.Type genericType)
Given the field type, provide the matching resource value, or null.
|
public MapInjectionResources(java.util.Map<java.lang.Class,java.lang.Object> map)
public <T> T findResource(java.lang.Class<T> type, java.lang.reflect.Type genericType)
InjectionResources
findResource
in interface InjectionResources
type
- type of field or parametergenericType
- generic type information associated with field or parameter${project.version} - Copyright © 2003-2015 The Apache Software Foundation.