org.apache.catalina.Container.removePropertyChangeListener()方法的使用及代码示例

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

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

Container.removePropertyChangeListener介绍

[英]Remove a property change listener from this component.
[中]从此组件中删除属性更改侦听器。

代码示例

代码示例来源:origin: zinin/tomcat-redis-session

@Override
public void setContainer(Container container) {
  log.trace(String.format("EXEC setContainer(%s);", container));
  // De-register from the old Container (if any)
  if ((this.container != null) && (this.container instanceof Context)) {
    this.container.removePropertyChangeListener(this);
  }
  Container oldContainer = this.container;
  this.container = container;
  support.firePropertyChange("container", oldContainer, this.container);
  // Register with the new Container (if any)
  if ((this.container != null) && (this.container instanceof Context)) {
    setMaxInactiveInterval(((Context) this.container).getSessionTimeout() * 60);
    this.container.addPropertyChangeListener(this);
  }
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-tomcat

/**
* {@inheritDoc}
*/
public void setContainer(Container container)
{
 // De-register from the old Container (if any)
 if ((this.container_ != null) && (this.container_ instanceof Context))
   this.container_.removePropertyChangeListener(this);
 // Default processing provided by our superclass
 this.container_ = container;
 // Register with the new Container (if any)
 if ((this.container_ != null) && (this.container_ instanceof Context))
 {
   setMaxInactiveInterval
    (((Context) this.container_).getSessionTimeout() * 60);
   this.container_.addPropertyChangeListener(this);
 }
 
 this.engine = getEngine();
}

代码示例来源:origin: modcluster/mod_cluster

((Container) child).removePropertyChangeListener(this);

代码示例来源:origin: modcluster/mod_cluster

protected void removeListeners(Server server) {
  // Unregister ourself as a listener to child components
  for (Service service : server.findServices()) {
    Container engine = service.getContainer();
    engine.removeContainerListener(this);
    engine.removeLifecycleListener(this);
    for (Container host : engine.findChildren()) {
      host.removeContainerListener(this);
      for (Container context : host.findChildren()) {
        context.removeLifecycleListener(this);
        context.removePropertyChangeListener(this);
      }
    }
  }
}

代码示例来源:origin: modcluster/mod_cluster

@Override
  protected void removeListeners(Server server) {
    // Unregister ourself as a listener to child components
    for (Service service : server.findServices()) {
      Container engine = service.getContainer();
      engine.removeContainerListener(this);
      engine.removeLifecycleListener(this);

      for (Container host : engine.findChildren()) {
        host.removeContainerListener(this);

        for (Container context : host.findChildren()) {
          context.removeLifecycleListener(this);
          context.removePropertyChangeListener(this);
        }
      }
    }
  }
}

代码示例来源:origin: org.jboss.mod_cluster/mod_cluster

((Container) child).removePropertyChangeListener(this);

相关文章

微信公众号

最新文章

更多