public class DefaultMethodMatcher extends java.lang.Object implements MethodMatcher
| Constructor and Description |
|---|
DefaultMethodMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object[] |
convert(Converter[] convertersArray,
java.lang.Object[] values,
java.lang.reflect.Type[] targetTypes) |
protected void |
findAndChange(java.lang.reflect.Type[] paramTypes,
java.lang.Class<?> declaringClass,
java.lang.reflect.ParameterizedType[] declaringTypes)
If there is only one TypeVariable in method's argument list, it will be replaced
by the type of the superclass of the service.
|
ServiceInvocationContext |
findServiceMethod(Message message,
Destination destination,
java.lang.Object service,
java.lang.String methodName,
java.lang.Object[] params) |
protected Converter[] |
getConvertersArray(Converters converters,
java.lang.Object[] values,
java.lang.reflect.Type[] targetTypes) |
protected java.lang.reflect.Type |
getGenericType(java.lang.Class<?> clazz)
Returns actual type argument of a given class.
|
protected org.granite.messaging.service.DefaultMethodMatcher.MatchingMethod |
resolveMatchingMethod(java.util.List<org.granite.messaging.service.DefaultMethodMatcher.MatchingMethod> methods,
java.lang.Class<?> serviceClass) |
public ServiceInvocationContext findServiceMethod(Message message, Destination destination, java.lang.Object service, java.lang.String methodName, java.lang.Object[] params) throws java.lang.NoSuchMethodException
findServiceMethod in interface MethodMatcherjava.lang.NoSuchMethodExceptionprotected Converter[] getConvertersArray(Converters converters, java.lang.Object[] values, java.lang.reflect.Type[] targetTypes)
protected java.lang.Object[] convert(Converter[] convertersArray, java.lang.Object[] values, java.lang.reflect.Type[] targetTypes)
protected org.granite.messaging.service.DefaultMethodMatcher.MatchingMethod resolveMatchingMethod(java.util.List<org.granite.messaging.service.DefaultMethodMatcher.MatchingMethod> methods,
java.lang.Class<?> serviceClass)
protected void findAndChange(java.lang.reflect.Type[] paramTypes,
java.lang.Class<?> declaringClass,
java.lang.reflect.ParameterizedType[] declaringTypes)
protected java.lang.reflect.Type getGenericType(java.lang.Class<?> clazz)