org.jboss.ejb3.interceptors.container
Class DummyBeanContext<T>

java.lang.Object
  extended by 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

Constructor Summary
DummyBeanContext(T instance, List<Object> interceptors)
           
 
Method Summary
 T getInstance()
           
 Object getInterceptor(Class<?> interceptorClass)
          Get the EJB3 interceptor of a certain type.
 Object[] getInterceptors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyBeanContext

public DummyBeanContext(T instance,
                        List<Object> interceptors)
Method Detail

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.