|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gwtwidgets.server.spring.ReflectionUtils
public class ReflectionUtils
Utilities for internal use
| Constructor Summary | |
|---|---|
ReflectionUtils()
|
|
| Method Summary | ||
|---|---|---|
static void |
addAll(java.util.Set<java.lang.Class<?>> set,
java.lang.Class<?>[] elements)
Adds elements of an array to a set. |
|
static
|
findAnnotation(java.lang.Class<?> clazz,
java.lang.Class<A> annotationType)
|
|
static java.lang.Class<com.google.gwt.user.client.rpc.RemoteService>[] |
getExposedInterfaces(java.lang.Class<?> clazz)
Return array of all interfaces that are implemented by clazz and extend RemoteService. |
|
static java.util.Set<java.lang.Class<?>> |
getInterfaces(java.lang.Class<?> c)
Return all interfaces that are implemented by this class, traversing super classes and super interfaces. |
|
static java.lang.reflect.Method |
getRPCMethod(java.lang.Object target,
java.lang.Class<?>[] serviceInterfaces,
java.lang.reflect.Method method)
Will try to find method in 'serviceInterfaces' and if found, will attempt to return a method with the same signature from 'service', otherwise an exception is thrown. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionUtils()
| Method Detail |
|---|
public static java.lang.Class<com.google.gwt.user.client.rpc.RemoteService>[] getExposedInterfaces(java.lang.Class<?> clazz)
RemoteService.
clazz -
public static void addAll(java.util.Set<java.lang.Class<?>> set,
java.lang.Class<?>[] elements)
set - elements - public static java.util.Set<java.lang.Class<?>> getInterfaces(java.lang.Class<?> c)
c -
public static java.lang.reflect.Method getRPCMethod(java.lang.Object target,
java.lang.Class<?>[] serviceInterfaces,
java.lang.reflect.Method method)
throws java.lang.NoSuchMethodException
target - Object to search method onserviceInterfaces - The requested method must exist on at least one of the
interfacesmethod -
NoSuchMethodException is
thrown
java.lang.NoSuchMethodException
public static <A extends java.lang.annotation.Annotation> A findAnnotation(java.lang.Class<?> clazz,
java.lang.Class<A> annotationType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||