org.jboss.ejb3.interceptors.container
Class DummyBeanContext<T>
java.lang.Object
org.jboss.ejb3.interceptors.container.DummyBeanContext<T>
- All Implemented Interfaces:
- BeanContext<T>
public class DummyBeanContext<T>
- extends Object
- implements BeanContext<T>
- Version:
- $Revision: $
- Author:
- Carlo de Wolf
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyBeanContext
public DummyBeanContext(T instance,
List<Object> interceptors)
getInstance
public T getInstance()
- Specified by:
getInstance
in interface BeanContext<T>
- Returns:
- the bean instance
getInterceptor
public Object getInterceptor(Class<?> interceptorClass)
throws IllegalArgumentException
- Description copied from interface:
BeanContext
- Get the EJB3 interceptor of a certain type.
- Specified by:
getInterceptor
in interface BeanContext<T>
- Parameters:
interceptorClass
- the interceptor type to get
- Returns:
- the interceptor
- Throws:
IllegalArgumentException
- if no interceptor of that class is associated
getInterceptors
public Object[] getInterceptors()
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.