public abstract class CustomListenerAdapterUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
CustomListenerAdapterUtils() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> |
determineCustomMethods(java.lang.Class<?> target,
java.lang.String methodName,
boolean onlyPublic)
Shortcut method that uses as possible argument types, Dictionary.class, Map.class or even nothing.
|
(package private) static java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> |
determineCustomMethods(java.lang.Class<?> target,
java.lang.String methodName,
java.lang.Class<?>[] possibleArgumentTypes,
boolean onlyPublic)
Specialised reflection utility that determines all methods that accept two parameters such:
|
private static java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> |
doDetermineCustomMethods(java.lang.Class<?> target,
java.lang.String methodName,
java.lang.Class<?>[] possibleArgumentTypes,
boolean onlyPublic) |
(package private) static void |
invokeCustomMethods(java.lang.Object target,
java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> methods,
java.lang.Object service,
java.util.Map properties)
Invoke the custom listener method.
|
static java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> determineCustomMethods(java.lang.Class<?> target,
java.lang.String methodName,
java.lang.Class<?>[] possibleArgumentTypes,
boolean onlyPublic)
methodName(Type serviceType, Type1 arg) methodName(Type serviceType, Type2 arg) methodName(AnotherType serviceType, Type1 arg) methodName(Type serviceType)It will return a map which has the serviceType (first argument) as type and contains as list the variants of methods using the second argument. This method is normally used by listeners when determining custom methods.
target - methodName - possibleArgumentTypes - modifier - private static java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> doDetermineCustomMethods(java.lang.Class<?> target,
java.lang.String methodName,
java.lang.Class<?>[] possibleArgumentTypes,
boolean onlyPublic)
static java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> determineCustomMethods(java.lang.Class<?> target,
java.lang.String methodName,
boolean onlyPublic)
target - methodName - static void invokeCustomMethods(java.lang.Object target,
java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> methods,
java.lang.Object service,
java.util.Map properties)
#determineCustomMethods(Class, String, Class[]) and invoking the method using the arguments.target - methods - service - properties -