|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.manager.callback.LifecycleCallbackRegistry
public class LifecycleCallbackRegistry
Register all available callbacks. The registry acts as a LifecycleCallback
itself whose implementation
delegate the call to registered callbacks. The registry will handle any runtime exceptions thrown by callbacks, in
order to allow successful lifecycle execution.
Constructor Summary | |
---|---|
LifecycleCallbackRegistry()
|
Method Summary | |
---|---|
protected List<LifecycleCallback> |
initCallbacks()
|
void |
onAfterMerge()
Called after all resources are merged and the preProcessing is completed. |
void |
onAfterModelCreated()
Invoked after the model is created. |
void |
onAfterPostProcess()
Called after a resource is post processed. |
void |
onAfterPreProcess()
Called after a resource is pre processed. |
void |
onBeforeMerge()
Called before resources are merged and before any processing is applied. |
void |
onBeforeModelCreated()
Invoked before starting model creation. |
void |
onBeforePostProcess()
Called before a resource is post processed. |
void |
onBeforePreProcess()
Called before each resource is processed. |
protected void |
onException(Exception e)
Invoked when a callback fails. |
void |
onProcessingComplete()
Called after all postProcessors are applied and overall processing is complete. |
void |
registerCallback(LifecycleCallback callback)
Deprecated. use registerCallback(ObjectFactory) instead to ensure thread-safety. |
void |
registerCallback(ObjectFactory<LifecycleCallback> callbackFactory)
Register a callback using a factory responsible for callback instantiation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifecycleCallbackRegistry()
Method Detail |
---|
@Deprecated public void registerCallback(LifecycleCallback callback)
registerCallback(ObjectFactory)
instead to ensure thread-safety.
callback
- to register.public void registerCallback(ObjectFactory<LifecycleCallback> callbackFactory)
callbackFactory
- the factory used to instantiate callbacks.protected List<LifecycleCallback> initCallbacks()
public void onBeforeModelCreated()
onBeforeModelCreated
in interface LifecycleCallback
public void onAfterModelCreated()
onAfterModelCreated
in interface LifecycleCallback
public void onBeforePreProcess()
onBeforePreProcess
in interface LifecycleCallback
public void onAfterPreProcess()
onAfterPreProcess
in interface LifecycleCallback
public void onBeforePostProcess()
onBeforePostProcess
in interface LifecycleCallback
public void onAfterPostProcess()
onAfterPostProcess
in interface LifecycleCallback
public void onBeforeMerge()
onBeforeMerge
in interface LifecycleCallback
public void onAfterMerge()
LifecycleCallback
onAfterMerge
in interface LifecycleCallback
public void onProcessingComplete()
onProcessingComplete
in interface LifecycleCallback
protected void onException(Exception e)
e
- Exception
thrown by the fallback.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |