public class TargetBeanInstance extends AbstractBeanInstance implements Serializable
BeanInstance
which always maintains a specific bean instance that is being proxied.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() |
MethodHandler |
getInterceptorsHandler() |
Object |
invoke(Object instance,
Method method,
Object... arguments) |
void |
setInterceptorsHandler(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 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 BeanInstance
invoke
in class AbstractBeanInstance
Throwable
Copyright © 2016. All rights reserved.