Enhancer pass this object to the
registered MethodInterceptor objects when an intercepted method is invoked. It can
be used to either invoke the original method, or call the same method on a different
object of the same type.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private MethodProxy. | |
| private volatile MethodProxy. | |
| private final Object | |
| private Signature | |
| private Signature |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MethodProxy | |
| public static MethodProxy | |
| pack-priv FastClass | |
| public Signature | |
| pack-priv FastClass | |
| public int | getSuperIndex()
Return the |
| public String | getSuperName()
Return the name of the synthetic method created by CGLIB which is
used by |
| private static FastClass | |
| private void | |
| public Object | invoke(Object
the compatible object; recursion will result if you use the object passed as the first
argument to the MethodInterceptor (usually not what you want) obj, Object[] the arguments passed to the intercepted method; you may substitute a different
argument array as long as the types are compatible args)Invoke the original method, on a different object of the same type. |
| public Object | invokeSuper(Object
the enhanced object, must be the object passed as the first
argument to the MethodInterceptor obj, Object[] the arguments passed to the intercepted method; you may substitute a different
argument array as long as the types are compatible args)Invoke the original (super) method on the specified object. |
| createInfo | back to summary |
|---|---|
| private MethodProxy. | |
| fastClassInfo | back to summary |
|---|---|
| private volatile MethodProxy. | |
| initLock | back to summary |
|---|---|
| private final Object initLock | |
| sig1 | back to summary |
|---|---|
| private Signature sig1 | |
| sig2 | back to summary |
|---|---|
| private Signature sig2 | |
| MethodProxy | back to summary |
|---|---|
| private MethodProxy() | |
| create | back to summary |
|---|---|
| public static MethodProxy create(Class<T> c1, Class<T> c2, String desc, String name1, String name2) For internal use by | |
| find | back to summary |
|---|---|
| public static MethodProxy find(Class<T> type, Signature sig) Return the
| |
| getFastClass | back to summary |
|---|---|
| pack-priv FastClass getFastClass() | |
| getSignature | back to summary |
|---|---|
| public Signature getSignature() Return the signature of the proxied method. | |
| getSuperFastClass | back to summary |
|---|---|
| pack-priv FastClass getSuperFastClass() | |
| getSuperIndex | back to summary |
|---|---|
| public int getSuperIndex() Return the
| |
| getSuperName | back to summary |
|---|---|
| public String getSuperName() Return the name of the synthetic method created by CGLIB which is
used by | |
| helper | back to summary |
|---|---|
| private static FastClass helper(MethodProxy. | |
| init | back to summary |
|---|---|
| private void init() | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object obj, Object[] args) throws Throwable Invoke the original method, on a different object of the same type.
| |
| invokeSuper | back to summary |
|---|---|
| public Object invokeSuper(Object obj, Object[] args) throws Throwable Invoke the original (super) method on the specified object.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv Class | |
| pack-priv Class | |
| pack-priv NamingPolicy | |
| pack-priv GeneratorStrategy |
| Access | Constructor and Description |
|---|---|
| public |
| attemptLoad | back to summary |
|---|---|
| pack-priv boolean attemptLoad | |
| c1 | back to summary |
|---|---|
| pack-priv Class<T> c1 | |
| c2 | back to summary |
|---|---|
| pack-priv Class<T> c2 | |
| namingPolicy | back to summary |
|---|---|
| pack-priv NamingPolicy namingPolicy | |
| strategy | back to summary |
|---|---|
| pack-priv GeneratorStrategy strategy | |
| CreateInfo | back to summary |
|---|---|
| public CreateInfo(Class<T> c1, Class<T> c2) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv FastClass | |
| pack-priv FastClass | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| private |
| f1 | back to summary |
|---|---|
| pack-priv FastClass f1 | |
| f2 | back to summary |
|---|---|
| pack-priv FastClass f2 | |
| i1 | back to summary |
|---|---|
| pack-priv int i1 | |
| i2 | back to summary |
|---|---|
| pack-priv int i2 | |
| FastClassInfo | back to summary |
|---|---|
| private FastClassInfo() | |