public final class NullLifecycleInterceptor extends Object implements LifecycleInterceptor
null object design pattern for the LifecycleInterceptor interface| Constructor and Description |
|---|
NullLifecycleInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPhaseExecution(LifecyclePhase phase,
Object object,
Optional<Exception> exceptionThrownOptional)
NoOp implementation
|
boolean |
beforePhaseExecution(LifecyclePhase phase,
Object object)
Invoked before the given
phase is applied over the object. |
void |
onPhaseCompleted(LifecyclePhase phase)
NoOp implementation
|
public boolean beforePhaseExecution(LifecyclePhase phase, Object object)
LifecycleInterceptorphase is applied over the object.
This method's return value also indicates if the lifecycle should in fact be applied over the object or if it should
be skipped. Note that this interceptor is not responsible from actually preventing the phase from being applied. It's
the invoker's responsibility to skip the object if the interceptor indicates so.
beforePhaseExecution in interface LifecycleInterceptorphase - the phase being appliedobject - the target objecttruepublic void afterPhaseExecution(LifecyclePhase phase, Object object, Optional<Exception> exceptionThrownOptional)
afterPhaseExecution in interface LifecycleInterceptorphase - the phase that was appliedobject - the target objectexceptionThrownOptional - an optional with an exception. If present then there was an error execution the phase, otherwise the
phase execution was successfulpublic void onPhaseCompleted(LifecyclePhase phase)
onPhaseCompleted in interface LifecycleInterceptorphase - the phase that was appliedCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.