本文整理了Java中javax.faces.lifecycle.Lifecycle.addPhaseListener()
方法的一些代码示例,展示了Lifecycle.addPhaseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lifecycle.addPhaseListener()
方法的具体详情如下:
包路径:javax.faces.lifecycle.Lifecycle
类名称:Lifecycle
方法名:addPhaseListener
[英]Register a new PhaseListener instance that is interested in being notified before and after the processing for standard phases of the request processing lifecycle.
[中]注册一个新的PhaseListener实例,该实例希望在请求处理生命周期的标准阶段的处理前后收到通知。
代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20
CodiLifecycleWrapper(Lifecycle wrapped, List<PhaseListener> phaseListeners)
{
this.wrapped = wrapped;
for(PhaseListener phaseListener : phaseListeners)
{
this.wrapped.addPhaseListener(phaseListener);
}
}
代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf12
/**
* {@inheritDoc}
*/
public void addPhaseListener(PhaseListener phaseListener)
{
wrapped.addPhaseListener(phaseListener);
}
代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl
@Override
public void addPhaseListener(PhaseListener phaseListener)
{
this.wrapped.addPhaseListener(phaseListener);
}
代码示例来源:origin: org.springframework.webflow/org.springframework.faces
/**
* Delegates to the wrapped {@link Lifecycle}.
*/
public void addPhaseListener(PhaseListener listener) {
delegate.addPhaseListener(listener);
}
代码示例来源:origin: org.apache.myfaces.extensions.cdi.modules/myfaces-extcdi-jsf12-module-impl
CodiLifecycleWrapper(Lifecycle wrapped, List<PhaseListener> phaseListeners)
{
this.wrapped = wrapped;
for (PhaseListener phaseListener : phaseListeners)
{
this.wrapped.addPhaseListener(phaseListener);
}
}
代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20
CodiLifecycleWrapper(Lifecycle wrapped, List<PhaseListener> phaseListeners)
{
this.wrapped = wrapped;
for (PhaseListener phaseListener : phaseListeners)
{
this.wrapped.addPhaseListener(phaseListener);
}
}
代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20
/**
* {@inheritDoc}
*/
public void addPhaseListener(PhaseListener phaseListener)
{
wrapped.addPhaseListener(phaseListener);
}
代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20
/**
* {@inheritDoc}
*/
public void addPhaseListener(PhaseListener phaseListener)
{
wrapped.addPhaseListener(phaseListener);
}
代码示例来源:origin: org.apache.myfaces.extensions.cdi.modules/myfaces-extcdi-jsf12-module-impl
/**
* {@inheritDoc}
*/
public void addPhaseListener(PhaseListener phaseListener)
{
wrapped.addPhaseListener(phaseListener);
}
代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl-ee6
@Override
public void addPhaseListener(PhaseListener phaseListener)
{
this.wrapped.addPhaseListener(phaseListener);
}
代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf12
CodiLifecycleWrapper(Lifecycle wrapped, List<PhaseListener> phaseListeners)
{
this.wrapped = wrapped;
for (PhaseListener phaseListener : phaseListeners)
{
this.wrapped.addPhaseListener(phaseListener);
}
}
代码示例来源:origin: javax/javaee-web-api
@Override
public void addPhaseListener(PhaseListener listener) {
getWrapped().addPhaseListener(listener);
}
代码示例来源:origin: com.sun.faces/jsf-api
@Override
public void addPhaseListener(PhaseListener listener) {
getWrapped().addPhaseListener(listener);
}
代码示例来源:origin: javax.faces/javax.faces-api
@Override
public void addPhaseListener(PhaseListener listener) {
getWrapped().addPhaseListener(listener);
}
代码示例来源:origin: org.icefaces/icefaces
void initialize(final ResourceHandler resourceHandler, final ServletContext servletContext, final ICEpushResourceHandler icePushResourceHandler) {
this.resourceHandler = resourceHandler;
this.servletContext = servletContext;
servletContext.setAttribute(ICEpushResourceHandler.class.getName(), icePushResourceHandler);
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Iterator<String> lifecycleIds = lifecycleFactory.getLifecycleIds();
while (lifecycleIds.hasNext()) {
String lifecycleId = lifecycleIds.next();
Lifecycle lifecycle = lifecycleFactory.getLifecycle(lifecycleId);
lifecycle.addPhaseListener(icePushResourceHandler);
}
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public void registerPhaseListener(PhaseListener phaseListener) throws IllegalStateException {
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(
FactoryFinder.LIFECYCLE_FACTORY);
for (Iterator<String> lifecycleIds = lifecycleFactory.getLifecycleIds(); lifecycleIds.hasNext();) {
String lifecycleId = lifecycleIds.next();
lifecycleFactory.getLifecycle(lifecycleId).addPhaseListener(phaseListener);
}
}
代码示例来源:origin: com.liferay.faces/liferay-faces-util
public void registerPhaseListener(PhaseListener phaseListener) throws IllegalStateException {
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(
FactoryFinder.LIFECYCLE_FACTORY);
for (Iterator<String> lifecycleIds = lifecycleFactory.getLifecycleIds(); lifecycleIds.hasNext();) {
String lifecycleId = lifecycleIds.next();
lifecycleFactory.getLifecycle(lifecycleId).addPhaseListener(phaseListener);
}
}
代码示例来源:origin: liferay/liferay-faces
public void registerPhaseListener(PhaseListener phaseListener) throws IllegalStateException {
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(
FactoryFinder.LIFECYCLE_FACTORY);
for (Iterator<String> lifecycleIds = lifecycleFactory.getLifecycleIds(); lifecycleIds.hasNext();) {
String lifecycleId = lifecycleIds.next();
lifecycleFactory.getLifecycle(lifecycleId).addPhaseListener(phaseListener);
}
}
代码示例来源:origin: org.seasar.teeda/teeda-core
protected void doAssemble(String targetName) {
PhaseListener phaseListener = (PhaseListener) ClassUtil
.newInstance(targetName);
getLifecycle().addPhaseListener(phaseListener);
}
代码示例来源:origin: org.apache.myfaces.extensions.scripting/extscript-core
public void addPhaseListener(PhaseListener phaseListener) {
weaveDelegate();
/*we can put our object weaving code into the add here*/
if (WeavingContext.getInstance().isDynamic(phaseListener.getClass()))
phaseListener = (PhaseListener) WeavingContext.getInstance().createMethodReloadingProxyFromObject(phaseListener,
PhaseListener.class, ScriptingConst.ARTIFACT_TYPE_PHASELISTENER);
_delegate.addPhaseListener(phaseListener);
}
内容来源于网络,如有侵权,请联系作者删除!