|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.interceptor.InterceptorProxy
public class InterceptorProxy
Maintains a list of listeners. For performance, this listener maintains a separate list for each phase of the event execution.
| Constructor Summary | |
|---|---|
InterceptorProxy()
|
|
| Method Summary | ||
|---|---|---|
|
addListener(T listener)
Adds a listener that implements one or more of the listener interfaces |
|
Resolution |
afterCreate(ParsedAction action)
|
|
Resolution |
beforeExecute(ParsedAction action)
|
|
Resolution |
beforePopulate(ParsedAction action)
|
|
void |
beforeResolution(ParsedAction action,
Resolution resolution)
Gets invoked before resolution.resolve() |
|
Resolution |
beforeValidate(ParsedAction action)
|
|
void |
decorate(Button button)
|
|
void |
decorate(Form form)
|
|
void |
decorate(Link link)
Modify a link pointing here. |
|
void |
doFinally(ParsedAction action,
java.lang.Exception e)
|
|
|
findInterceptorsWithClass(java.lang.Class<T> interceptorClass)
|
|
java.util.List<CreateInterceptor> |
getCreateListeners()
|
|
java.util.List<ErrorListener> |
getErrorListeners()
|
|
java.util.List<ExecuteInterceptor> |
getExecuteListeners()
|
|
java.util.List<FinallyListener> |
getFinallyListeners()
|
|
java.util.List<PopulateInterceptor> |
getPopulateListeners()
|
|
java.util.List<ValidateInterceptor> |
getValidateListeners()
|
|
boolean |
isEmpty()
|
|
Resolution |
onError(ParsedAction action)
|
|
void |
remove(Interceptor listener)
Remove the supplied interceptor instance from this list |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InterceptorProxy()
| Method Detail |
|---|
public <T extends Interceptor> void addListener(T listener)
public <T extends Interceptor> java.util.Set<T> findInterceptorsWithClass(java.lang.Class<T> interceptorClass)
public void remove(Interceptor listener)
listener - the instance to be removedpublic Resolution afterCreate(ParsedAction action)
afterCreate in interface CreateInterceptoraction - the action and event that is being executed
public Resolution beforePopulate(ParsedAction action)
beforePopulate in interface PopulateInterceptoraction - the action and event that is being executed
public Resolution beforeValidate(ParsedAction action)
beforeValidate in interface ValidateInterceptoraction - the action and event that is being executed
public Resolution beforeExecute(ParsedAction action)
beforeExecute in interface ExecuteInterceptoraction - the action and event that is being executed
public void beforeResolution(ParsedAction action,
Resolution resolution)
ResolutionInterceptor
beforeResolution in interface ResolutionInterceptoraction - the action and event that is being executedresolution - the action and event that is being executedpublic Resolution onError(ParsedAction action)
onError in interface ErrorListeneraction - the action and event that were being executed
public void doFinally(ParsedAction action,
java.lang.Exception e)
doFinally in interface FinallyListeneraction - the action and event that is being executede - If any exception was thrown in any phase (populate, validate, execute), null if none.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEmpty()
public void decorate(Link link)
LinkDecorator
decorate in interface LinkDecoratorpublic void decorate(Form form)
decorate in interface FormDecoratorpublic void decorate(Button button)
decorate in interface ButtonDecoratorpublic java.util.List<CreateInterceptor> getCreateListeners()
public java.util.List<PopulateInterceptor> getPopulateListeners()
public java.util.List<ValidateInterceptor> getValidateListeners()
public java.util.List<ExecuteInterceptor> getExecuteListeners()
public java.util.List<FinallyListener> getFinallyListeners()
public java.util.List<ErrorListener> getErrorListeners()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||