|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.validator.core.startup.AbstractStartupListener
public abstract class AbstractStartupListener
In order to execute logic just once. e.g. register artifacts via api. It is done before the first Restore view of the application. PhaseListeners are deregistered so that they don't have any additional impact on the application.
Field Summary | |
---|---|
protected Logger |
logger
|
Constructor Summary | |
---|---|
protected |
AbstractStartupListener()
|
Method Summary | |
---|---|
void |
afterPhase(javax.faces.event.PhaseEvent event)
|
void |
beforePhase(javax.faces.event.PhaseEvent event)
Is responsible for executing the one time only logic. |
javax.faces.event.PhaseId |
getPhaseId()
Logic should be executed before the RESTORE_VIEW phase. |
protected ProjectStageResolver |
getProjectStageResolver()
|
protected abstract void |
init()
Subclasses can here put their logic that they want to be executed once, like initialization code of a module or add-on. |
protected void |
initModuleConfig()
Allows subclasses to put some configuration in place, before the actual initialization code is performed. |
protected void |
initProjectStageResolver()
|
protected boolean |
isStartupListenerDeactivated()
Individual startup listeners can be deactivated by specifying an initialization parameter in the web.xml file with the name of the startup listener followed by ':DEACTIVATED' that have a value of 'true'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Logger logger
Constructor Detail |
---|
protected AbstractStartupListener()
Method Detail |
---|
public void afterPhase(javax.faces.event.PhaseEvent event)
afterPhase
in interface javax.faces.event.PhaseListener
public void beforePhase(javax.faces.event.PhaseEvent event)
beforePhase
in interface javax.faces.event.PhaseListener
event
- Jsf Phase Event info.protected void initModuleConfig()
ExtValCoreConfiguration.use(org.apache.myfaces.extensions.validator.core.ExtValCoreConfiguration, boolean)
public javax.faces.event.PhaseId getPhaseId()
getPhaseId
in interface javax.faces.event.PhaseListener
protected boolean isStartupListenerDeactivated()
protected void initProjectStageResolver()
protected ProjectStageResolver getProjectStageResolver()
protected abstract void init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |