public class DelegateAdvice extends java.lang.Object implements ProxyAdvice
Allows usage of classes loaded by different class loader. For example, if you have an instance of class loaded by parent-last class loader, delegate allows to still call it using plain java. Under the hood, each method will actually invoke target method using reflection.
| Modifier and Type | Field and Description |
|---|---|
java.lang.Object |
_target
Target object.
|
| Constructor and Description |
|---|
DelegateAdvice() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute()
Looks up for method in target object and invokes it using reflection.
|
public java.lang.Object execute()
throws java.lang.Exception
execute in interface ProxyAdvicejava.lang.ExceptionCopyright © 2003-present Jodd Team