software.amazon.disco.agent.interception.templates.DataAccessor which should be used
wherever possible instead.@Deprecated
public class MethodHandleWrapper
extends java.lang.Object
| Constructor and Description |
|---|
MethodHandleWrapper(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String methodName,
java.lang.Class rtype)
Deprecated.
Create a new MethodHandleWrapper
|
MethodHandleWrapper(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String methodName,
java.lang.Class rtype,
java.lang.Class... ptypes)
Deprecated.
Create a new MethodHandleWrapper
|
MethodHandleWrapper(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String methodName,
java.lang.Class rtype,
java.lang.String... ptypes)
Deprecated.
Create a new MethodHandleWrapper
|
MethodHandleWrapper(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String methodName,
java.lang.String rtype,
java.lang.String... ptypes)
Deprecated.
Create a new MethodHandleWrapper
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getRtype()
Deprecated.
Get the return type of the method referred to by this MethodHandleWrapper
|
java.lang.Object |
invoke(java.lang.Object receiver,
java.lang.Object... args)
Deprecated.
Invoke the method referred to by this MethodHandleWrapper
|
boolean |
isHandleLoaded()
Deprecated.
Method to provide information whether MethodHandle is loaded or not
eg: returns false if any exceptions are thrown while building MethodHandle
|
public MethodHandleWrapper(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String methodName,
java.lang.Class rtype,
java.lang.Class... ptypes)
className - the fully qualified name of the owning classclassLoader - the ClassLoader to be used for finding className, should probably by ClassLoader.getSystemClassLoader()methodName - the name of the method being looked uprtype - the return type of the methodptypes - the types of the parameters to the methodpublic MethodHandleWrapper(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String methodName,
java.lang.Class rtype)
className - the fully qualified name of the owning classclassLoader - the ClassLoader to be used for finding className, should probably by ClassLoader.getSystemClassLoader()methodName - the name of the method being looked uprtype - the return type of the methodpublic MethodHandleWrapper(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String methodName,
java.lang.Class rtype,
java.lang.String... ptypes)
className - the fully qualified name of the owning classclassLoader - the ClassLoader to be used for finding className, should probably by ClassLoader.getSystemClassLoader()methodName - the name of the method being looked uprtype - the return type of the methodptypes - the names of the types of the parameters to the methodpublic MethodHandleWrapper(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String methodName,
java.lang.String rtype,
java.lang.String... ptypes)
throws java.lang.Exception
className - the fully qualified name of the owning classclassLoader - the ClassLoader to be used for finding className, should probably by ClassLoader.getSystemClassLoader()methodName - the name of the method being looked uprtype - the name of the return type of the methodptypes - the names of the types of the parameters to the methodjava.lang.Exception - - ClassNotFoundException could be thrown if classpath for rtype is not found.public java.lang.Object invoke(java.lang.Object receiver,
java.lang.Object... args)
receiver - the object upon which this method is being invoked, the 'this' of the method callargs - the arguments being passed to the method, which should match the types given during construction as 'ptypes'public java.lang.Class getRtype()
public boolean isHandleLoaded()
Boolean