|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.intercept.InterceptorRuntimeSupport
public class InterceptorRuntimeSupport
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 | ||
|---|---|---|
|
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 |
|---|
public InterceptorRuntimeSupport()
| Method Detail |
|---|
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
T - bean -
null if there is no need to.
TODO this is part of the unfinished subclassing work, see OWB-344
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||