|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.FilterMethods
protected static class BeforeAfterMethodInterceptor.FilterMethods
Helper class used to collect Before and After methods for a class and provide easy and rapid access to them by LifecycleStage.
Constructor Summary | |
---|---|
protected |
BeforeAfterMethodInterceptor.FilterMethods()
|
Method Summary | |
---|---|
void |
addAfterMethod(LifecycleStage[] stages,
Method method)
Adds a method to be executed after the supplied LifecycleStages. |
void |
addBeforeMethod(LifecycleStage[] stages,
Method method)
Adds a method to be executed before the supplied LifecycleStages. |
List<Method> |
getAfterMethods(LifecycleStage stage)
Gets the Before methods for the given LifecycleStage. |
List<Method> |
getBeforeMethods(LifecycleStage stage)
Gets the Before methods for the given LifecycleStage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BeforeAfterMethodInterceptor.FilterMethods()
Method Detail |
---|
public void addBeforeMethod(LifecycleStage[] stages, Method method)
stages
- All the LifecycleStages that the given filter method should be invoked beforemethod
- The filter method to be invoked before the given LifecycleStage(s)public void addAfterMethod(LifecycleStage[] stages, Method method)
stages
- All the LifecycleStages that the given filter method should be invoked aftermethod
- The filter method to be invoked after the given LifecycleStage(s)public List<Method> getBeforeMethods(LifecycleStage stage)
stage
- The LifecycleStage to find Before methods for.
public List<Method> getAfterMethods(LifecycleStage stage)
stage
- The LifecycleStage to find Before methods for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |