Interface InjectionResources
-
- All Known Implementing Classes:
DelegatingInjectionResources
,MapInjectionResources
,WrongConfigurationTypeGuard
public interface InjectionResources
Provides for the injection of specific types of values as resources as opposed to services or objects obtained fromMasterObjectProvider
. This includes values such as a service's logger, service interface class, orServiceResources
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
findResource
<T> T findResource(java.lang.Class<T> type, java.lang.reflect.Type genericType)
Given the field type, provide the matching resource value, or null.- Parameters:
type
- type of field or parametergenericType
- generic type information associated with field or parameter- Returns:
- the corresponding value, or null
-
-