public class TargetBeanInstance extends AbstractBeanInstance implements Serializable
BeanInstance
which always maintains a specific bean instance
that is being proxied.log
Constructor and Description |
---|
TargetBeanInstance(javax.enterprise.inject.spi.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() |
javassist.util.proxy.MethodHandler |
getInterceptorsHandler() |
Object |
invoke(Object instance,
Method method,
Object... arguments) |
void |
setInterceptorsHandler(javassist.util.proxy.MethodHandler interceptorsHandler) |
computeInstanceType, computeInstanceType
public TargetBeanInstance(javax.enterprise.inject.spi.Bean<?> bean, Object instance)
public TargetBeanInstance(Object instance)
public TargetBeanInstance(TargetBeanInstance otherBeanInstance)
otherBeanInstance
- other bean instance to copypublic Object getInstance()
BeanInstance
getInstance
in interface BeanInstance
public Class<?> getInstanceType()
getInstanceType
in interface BeanInstance
public javassist.util.proxy.MethodHandler getInterceptorsHandler()
public void setInterceptorsHandler(javassist.util.proxy.MethodHandler interceptorsHandler)
interceptorsHandler
- the interceptorsHandler to setpublic Object invoke(Object instance, Method method, Object... arguments) throws Throwable
invoke
in interface BeanInstance
invoke
in class AbstractBeanInstance
Throwable
Copyright © 2013 Seam Framework. All rights reserved.