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