|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.ioc.internal.util.WrongConfigurationTypeGuard
public class WrongConfigurationTypeGuard
Used when invoking a contribute method to guard against a request for the wrong type of configuration interface.
Constructor Summary | |
---|---|
WrongConfigurationTypeGuard(java.lang.String serviceId,
java.lang.Class guardType,
java.lang.Class expectedType)
|
Method Summary | ||
---|---|---|
|
findResource(java.lang.Class<T> type,
java.lang.reflect.Type genericType)
Given the field type, provide the matching resource value, or null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WrongConfigurationTypeGuard(java.lang.String serviceId, java.lang.Class guardType, java.lang.Class expectedType)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |