public final class NullLifecycleInterceptor extends Object implements LifecycleInterceptor
null object
design pattern for
the LifecycleInterceptor
interfaceConstructor and Description |
---|
NullLifecycleInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
afterLifecycle(LifecyclePhase phase,
Object object)
NoOp implementation
|
boolean |
beforeLifecycle(LifecyclePhase phase,
Object object)
Invoked before the given
phase is applied over the object . |
void |
onPhaseCompleted(LifecyclePhase phase)
NoOp implementation
|
public boolean beforeLifecycle(LifecyclePhase phase, Object object)
LifecycleInterceptor
phase
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.
beforeLifecycle
in interface LifecycleInterceptor
phase
- the phase being appliedobject
- the target objecttrue
public void afterLifecycle(LifecyclePhase phase, Object object)
afterLifecycle
in interface LifecycleInterceptor
phase
- the phase that was appliedobject
- the target objectpublic void onPhaseCompleted(LifecyclePhase phase)
onPhaseCompleted
in interface LifecycleInterceptor
phase
- the phase that was appliedCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.