|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.bindings.util.InterfaceSimplifier
public class InterfaceSimplifier
The scripts can use simplified interfaces that omit the first "Subject" argument to most methods from RHQ's remote API. This helper class prepares such simplified interfaces.
| Method Summary | |
|---|---|
static Method |
getOriginalMethod(Method method)
Returns the method on the original interface that the simplified interface with given method was generated from using the simplify(Class) method (i.e. |
static boolean |
isSimplified(Class<?> cls)
Determines whether given class is simplified or not. |
static boolean |
isSimplified(Method method)
Determines whether the method (declared on the simplified interface, i.e. |
static Class<?> |
simplify(Class<?> intf)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Method getOriginalMethod(Method method)
simplify(Class) method (i.e. this method is kind of reverse to the simplify(Class)
method).
The returned method may or may not have different signature from the supplied method - that depends on whether
the simplify(Class) simplified the method or not.
method - the potentially simplified method
public static boolean isSimplified(Class<?> cls)
simplify(Class).
cls - the class
simplify(Class) method, false otherwise.public static boolean isSimplified(Method method)
isSimplified(method.getDeclaringClass() returns true) has been "tampered with" by the simplifier or
has been left intact.
If you want to get the original method that the supplied method corresponds to, use
the getOriginalMethod(Method) method.
method - the potentially simplified method present on a simplified class
public static Class<?> simplify(Class<?> intf)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||