public class MapInjectionResources extends Object implements InjectionResources
Constructor and Description |
---|
MapInjectionResources(Map<Class,Object> map) |
Modifier and Type | Method and Description |
---|---|
<T> T |
findResource(Class<T> type,
Type genericType)
Given the field type, provide the matching resource value, or null.
|
public MapInjectionResources(Map<Class,Object> map)
public <T> T findResource(Class<T> type, Type genericType)
InjectionResources
findResource
in interface InjectionResources
type
- type of field or parametergenericType
- generic type information associated with field or parameter5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.