org.apache.webbeans.intercept
Class InterceptorRuntimeSupport

java.lang.Object
  extended by org.apache.webbeans.intercept.InterceptorRuntimeSupport

public class InterceptorRuntimeSupport
extends Object

This class contains a set of static helper functions for creating interceptor subclasses of beans and evaluating and performing interceptor handling for those contextual instances at runtime

For each OwbBean which is either decorated with a Decorator or intercepted by a Interceptor we dynamically create a subclass and use bytecode creation to override intercepted functions to first delegate to all registered InterceptorHandlers.


Constructor Summary
InterceptorRuntimeSupport()
           
 
Method Summary
<T> Class<? extends T>
getInterceptorSubClass(OwbBean<T> bean)
          Create a interceptor/decorator subclass for the given bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorRuntimeSupport

public InterceptorRuntimeSupport()
Method Detail

getInterceptorSubClass

public final <T> Class<? extends T> getInterceptorSubClass(OwbBean<T> bean)

Create a interceptor/decorator subclass for the given bean.

This will first check if we really need to apply subclassing and if not will return null instead. We need subclassing if the bean contains any InterceptorType.AROUND_INVOKE or if there are any Decoraors

Type Parameters:
T -
Parameters:
bean -
Returns:
the interceptor subclass or null if there is no need to. TODO this is part of the unfinished subclassing work, see OWB-344


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.