Class WrongConfigurationTypeGuard
java.lang.Object
org.apache.tapestry5.ioc.internal.util.WrongConfigurationTypeGuard
- All Implemented Interfaces:
InjectionResources
Used when invoking a contribute method to guard against a request for the wrong type of configuration interface.
-
Constructor Summary
ConstructorsConstructorDescriptionWrongConfigurationTypeGuard(String serviceId, Class guardType, Class expectedType) -
Method Summary
Modifier and TypeMethodDescription<T> TfindResource(Class<T> type, Type genericType) Given the field type, provide the matching resource value, or null.
-
Constructor Details
-
WrongConfigurationTypeGuard
-
-
Method Details
-
findResource
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
-