public class DefaultMethodMatcher extends Object implements MethodMatcher
| Constructor and Description |
|---|
DefaultMethodMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected Object[] |
convert(Converter[] convertersArray,
Object[] values,
Type[] targetTypes) |
protected void |
findAndChange(Type[] paramTypes,
Class<?> declaringClass,
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,
Object service,
String methodName,
Object[] params) |
protected Converter[] |
getConvertersArray(Converters converters,
Object[] values,
Type[] targetTypes) |
protected Type |
getGenericType(Class<?> clazz)
Returns actual type argument of a given class.
|
protected org.granite.messaging.service.DefaultMethodMatcher.MatchingMethod |
resolveMatchingMethod(List<org.granite.messaging.service.DefaultMethodMatcher.MatchingMethod> methods,
Class<?> serviceClass) |
public DefaultMethodMatcher()
public ServiceInvocationContext findServiceMethod(Message message, Destination destination, Object service, String methodName, Object[] params) throws NoSuchMethodException
findServiceMethod in interface MethodMatcherNoSuchMethodExceptionprotected Converter[] getConvertersArray(Converters converters, Object[] values, Type[] targetTypes)
protected Object[] convert(Converter[] convertersArray, Object[] values, Type[] targetTypes)
protected org.granite.messaging.service.DefaultMethodMatcher.MatchingMethod resolveMatchingMethod(List<org.granite.messaging.service.DefaultMethodMatcher.MatchingMethod> methods, Class<?> serviceClass)
protected void findAndChange(Type[] paramTypes, Class<?> declaringClass, ParameterizedType[] declaringTypes)
protected Type getGenericType(Class<?> clazz)