Package org.jboss.weld.bean.proxy
Class TargetBeanInstance
java.lang.Object
org.jboss.weld.bean.proxy.AbstractBeanInstance
org.jboss.weld.bean.proxy.TargetBeanInstance
- All Implemented Interfaces:
Serializable,BeanInstance
A simple
BeanInstance which always maintains a specific bean instance that is being proxied.- Author:
- David Allen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTargetBeanInstance(jakarta.enterprise.inject.spi.Bean<?> bean, Object instance) TargetBeanInstance(Object instance) TargetBeanInstance(TargetBeanInstance otherBeanInstance) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the current instance for a proxy.Class<?>voidsetInterceptorsHandler(MethodHandler interceptorsHandler) Methods inherited from class org.jboss.weld.bean.proxy.AbstractBeanInstance
computeInstanceType, computeInstanceType
-
Constructor Details
-
TargetBeanInstance
-
TargetBeanInstance
-
TargetBeanInstance
Copy constructor- Parameters:
otherBeanInstance- other bean instance to copy
-
-
Method Details
-
getInstance
Description copied from interface:BeanInstanceReturns the current instance for a proxy.- Specified by:
getInstancein interfaceBeanInstance- Returns:
- the current bean instance
-
getInstanceType
- Specified by:
getInstanceTypein interfaceBeanInstance
-
getInterceptorsHandler
- Returns:
- the interceptorsHandler
-
setInterceptorsHandler
- Parameters:
interceptorsHandler- the interceptorsHandler to set
-
invoke
- Specified by:
invokein interfaceBeanInstance- Overrides:
invokein classAbstractBeanInstance- Throws:
Throwable
-