javax.faces.lifecycle.Lifecycle.removePhaseListener()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(94)

本文整理了Java中javax.faces.lifecycle.Lifecycle.removePhaseListener()方法的一些代码示例,展示了Lifecycle.removePhaseListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lifecycle.removePhaseListener()方法的具体详情如下:
包路径:javax.faces.lifecycle.Lifecycle
类名称:Lifecycle
方法名:removePhaseListener

Lifecycle.removePhaseListener介绍

[英]Deregister an existing PhaseListener instance that is no longer interested in being notified before and after the processing for standard phases of the request processing lifecycle. If no such listener instance has been registered, no action is taken.
[中]取消注册现有PhaseListener实例,该实例不再希望在请求处理生命周期的标准阶段的处理前后收到通知。如果没有注册此类侦听器实例,则不会采取任何操作。

代码示例

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl

@Override
public void removePhaseListener(PhaseListener phaseListener)
{
  this.wrapped.removePhaseListener(phaseListener);
}

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl-ee6

@Override
public void removePhaseListener(PhaseListener phaseListener)
{
  this.wrapped.removePhaseListener(phaseListener);
}

代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf12

/**
 * {@inheritDoc}
 */
public void removePhaseListener(PhaseListener phaseListener)
{
  wrapped.removePhaseListener(phaseListener);
}

代码示例来源:origin: org.springframework.webflow/org.springframework.faces

/**
 * Delegates to the wrapped {@link Lifecycle}.
 */
public void removePhaseListener(PhaseListener listener) {
  delegate.removePhaseListener(listener);
}

代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20

/**
 * {@inheritDoc}
 */
public void removePhaseListener(PhaseListener phaseListener)
{
  wrapped.removePhaseListener(phaseListener);
}

代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20

/**
 * {@inheritDoc}
 */
public void removePhaseListener(PhaseListener phaseListener)
{
  wrapped.removePhaseListener(phaseListener);
}

代码示例来源:origin: org.apache.myfaces.extensions.cdi.modules/myfaces-extcdi-jsf12-module-impl

/**
 * {@inheritDoc}
 */
public void removePhaseListener(PhaseListener phaseListener)
{
  wrapped.removePhaseListener(phaseListener);
}

代码示例来源:origin: javax/javaee-web-api

@Override
public void removePhaseListener(PhaseListener listener) {
  getWrapped().removePhaseListener(listener);
}

代码示例来源:origin: javax.faces/javax.faces-api

@Override
public void removePhaseListener(PhaseListener listener) {
  getWrapped().removePhaseListener(listener);
}

代码示例来源:origin: com.sun.faces/jsf-api

@Override
public void removePhaseListener(PhaseListener listener) {
  getWrapped().removePhaseListener(listener);
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

public void removePhaseListener(PhaseListener listener)
{
  getWrapped().removePhaseListener(listener);
}

代码示例来源:origin: org.apache.myfaces.extensions.scripting/extscript-core

public void removePhaseListener(PhaseListener phaseListener) {
  weaveDelegate();
  _delegate.removePhaseListener(phaseListener);
}

代码示例来源:origin: org.glassfish/javax.faces

@Override
public void removePhaseListener(PhaseListener listener) {
  getWrapped().removePhaseListener(listener);
}

代码示例来源:origin: eclipse-ee4j/mojarra

@Override
public void removePhaseListener(PhaseListener listener) {
  getWrapped().removePhaseListener(listener);
}

代码示例来源:origin: jboss/jboss-javaee-specs

@Override
public void removePhaseListener(PhaseListener listener) {
  getWrapped().removePhaseListener(listener);
}

代码示例来源:origin: org.glassfish/jakarta.faces

@Override
public void removePhaseListener(PhaseListener listener) {
  getWrapped().removePhaseListener(listener);
}

代码示例来源:origin: com.sun.faces/jsf-impl

public static void removeELResolverInitPhaseListener() {
  LifecycleFactory factory = (LifecycleFactory)
      FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
  // remove ourselves from the list of listeners maintained by
  // the lifecycle instances
  for (Iterator<String> i = factory.getLifecycleIds(); i.hasNext();) {
    Lifecycle lifecycle = factory.getLifecycle(i.next());
    for (PhaseListener cur : lifecycle.getPhaseListeners()) {
      if (cur instanceof ELResolverInitPhaseListener) {
        lifecycle.removePhaseListener(cur);
      }
    }
  }
}

代码示例来源:origin: org.glassfish/javax.faces

public static void removeELResolverInitPhaseListener() {
  LifecycleFactory factory = (LifecycleFactory)
      FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
  // remove ourselves from the list of listeners maintained by
  // the lifecycle instances
  for (Iterator<String> i = factory.getLifecycleIds(); i.hasNext();) {
    Lifecycle lifecycle = factory.getLifecycle(i.next());
    for (PhaseListener cur : lifecycle.getPhaseListeners()) {
      if (cur instanceof ELResolverInitPhaseListener) {
        lifecycle.removePhaseListener(cur);
      }
    }
  }
}

代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl

public void beforePhase(final PhaseEvent event)
{
  if (!initialized)
  {
    initialized = true;
    _resolverBuilder.build(_resolverForJSP);
    LifecycleFactory factory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
    for (Iterator<String> iter = factory.getLifecycleIds(); iter.hasNext();)
    {
      factory.getLifecycle(iter.next()).removePhaseListener(this);
    }
  }
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl

public void beforePhase(final PhaseEvent event)
{
  if (!initialized)
  {
    initialized = true;
    _resolverBuilder.build(_resolverForJSP);
    LifecycleFactory factory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
    for (Iterator<String> iter = factory.getLifecycleIds(); iter.hasNext();)
    {
      factory.getLifecycle(iter.next()).removePhaseListener(this);
    }
  }
}

相关文章