|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.myfaces.extensions.validator.core.startup.AbstractStartupListener
public abstract class AbstractStartupListener
Startup listeners can be used to execute e.g. setup-logic just once before the first request gets processed. After a listener was executed it gets deactivated.
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 init() . |
javax.faces.event.PhaseId |
getPhaseId()
|
protected ProjectStageResolver |
getProjectStageResolver()
|
protected abstract void |
init()
Contains logic which should get executed before the application gets invoked (e.g. 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()
Startup listeners can be deactivated via context-params in the web.xml. |
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)
init()
. Before the method is executed, the start-up
listener has the chance of putting a configuration object in place (@see #initModuleConfig).
Startup listeners can be deactivated via a web.xml context-param.
beforePhase
in interface javax.faces.event.PhaseListener
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 |