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 java.lang.Object
implements BeanContext<T>

Version:
$Revision: $
Author:
Carlo de Wolf

Constructor Summary
DummyBeanContext(T instance, java.util.List<java.lang.Object> interceptors)
           
 
Method Summary
 T getInstance()
           
 java.lang.Object getInterceptor(java.lang.Class<?> interceptorClass)
          Get the EJB3 interceptor of a certain type.
 java.lang.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,
                        java.util.List<java.lang.Object> interceptors)
Method Detail

getInstance

public T getInstance()
Specified by:
getInstance in interface BeanContext<T>
Returns:
the bean instance

getInterceptor

public java.lang.Object getInterceptor(java.lang.Class<?> interceptorClass)
                                throws java.lang.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:
java.lang.IllegalArgumentException - if no interceptor of that class is associated

getInterceptors

public java.lang.Object[] getInterceptors()


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.