public class TargetBeanInstance extends AbstractBeanInstance implements java.io.Serializable
BeanInstance which always maintains a specific bean instance that is being proxied.| Constructor and Description |
|---|
TargetBeanInstance(Bean<?> bean,
java.lang.Object instance) |
TargetBeanInstance(java.lang.Object instance) |
TargetBeanInstance(TargetBeanInstance otherBeanInstance)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getInstance()
Returns the current instance for a proxy.
|
java.lang.Class<?> |
getInstanceType() |
MethodHandler |
getInterceptorsHandler() |
java.lang.Object |
invoke(java.lang.Object instance,
java.lang.reflect.Method method,
java.lang.Object... arguments) |
void |
setInterceptorsHandler(MethodHandler interceptorsHandler) |
computeInstanceType, computeInstanceTypepublic TargetBeanInstance(Bean<?> bean, java.lang.Object instance)
public TargetBeanInstance(java.lang.Object instance)
public TargetBeanInstance(TargetBeanInstance otherBeanInstance)
otherBeanInstance - other bean instance to copypublic java.lang.Object getInstance()
BeanInstancegetInstance in interface BeanInstancepublic java.lang.Class<?> getInstanceType()
getInstanceType in interface BeanInstancepublic MethodHandler getInterceptorsHandler()
public void setInterceptorsHandler(MethodHandler interceptorsHandler)
interceptorsHandler - the interceptorsHandler to setpublic java.lang.Object invoke(java.lang.Object instance,
java.lang.reflect.Method method,
java.lang.Object... arguments)
throws java.lang.Throwable
invoke in interface BeanInstanceinvoke in class AbstractBeanInstancejava.lang.ThrowableCopyright © 2015. All Rights Reserved.