|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.madvoc.interceptor.InterceptorsManager
public class InterceptorsManager
Manager for Madvoc interceptors. By default, all interceptors are pooled so there will be only one instance per its type.
Field Summary | |
---|---|
protected java.util.Map<java.lang.Class<? extends ActionInterceptor>,ActionInterceptor> |
interceptors
|
protected WebApplication |
webapp
|
Constructor Summary | |
---|---|
InterceptorsManager(WebApplication webapp)
|
Method Summary | |
---|---|
protected ActionInterceptor |
createInterceptor(java.lang.Class<? extends ActionInterceptor> interceptorClass)
Creates new ActionInterceptor . |
protected java.lang.Class<? extends ActionInterceptor>[] |
expand(java.lang.Class<? extends ActionInterceptor>[] actionInterceptors)
Expands all DefaultWebAppInterceptors and
ActionInterceptorStack in action interceptor array,
by replacing them with real values. |
ActionInterceptor |
lookup(java.lang.Class<? extends ActionInterceptor> interceptorClass)
Looks up for existing interceptor. |
ActionInterceptor |
resolve(java.lang.Class<? extends ActionInterceptor> interceptorClass)
Resolves single interceptor. |
ActionInterceptor[] |
resolveAll(java.lang.Class<? extends ActionInterceptor>... interceptorClasses)
Resolves interceptors. |
void |
resolveInterceptors(ActionConfig cfg)
Resolves all provided interceptors and returns their instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final WebApplication webapp
protected java.util.Map<java.lang.Class<? extends ActionInterceptor>,ActionInterceptor> interceptors
Constructor Detail |
---|
public InterceptorsManager(WebApplication webapp)
Method Detail |
---|
public ActionInterceptor lookup(java.lang.Class<? extends ActionInterceptor> interceptorClass)
null
if interceptor is not already registered.
public ActionInterceptor resolve(java.lang.Class<? extends ActionInterceptor> interceptorClass)
public ActionInterceptor[] resolveAll(java.lang.Class<? extends ActionInterceptor>... interceptorClasses)
public void resolveInterceptors(ActionConfig cfg)
protected java.lang.Class<? extends ActionInterceptor>[] expand(java.lang.Class<? extends ActionInterceptor>[] actionInterceptors)
DefaultWebAppInterceptors
and
ActionInterceptorStack
in action interceptor array,
by replacing them with real values.
protected ActionInterceptor createInterceptor(java.lang.Class<? extends ActionInterceptor> interceptorClass)
ActionInterceptor
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |