org.jboss.ejb3.interceptors.container
Interface BeanContext<T>
- All Known Implementing Classes:
- DummyBeanContext
public interface BeanContext<T>
The intercepted component consisting of a bean instance and the interceptor
instances.
|
Method Summary |
T |
getInstance()
|
java.lang.Object |
getInterceptor(java.lang.Class<?> interceptorClass)
Get the EJB3 interceptor of a certain type. |
getInstance
T getInstance()
- Returns:
- the bean instance
getInterceptor
java.lang.Object getInterceptor(java.lang.Class<?> interceptorClass)
throws java.lang.IllegalArgumentException
- Get the EJB3 interceptor of a certain type.
- Parameters:
interceptorClass - the interceptor type to get
- Returns:
- the interceptor
- Throws:
java.lang.IllegalArgumentException - if no interceptor of that class is associated