org.eclipse.jetty.server.Server.updateBeans()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(147)

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

Server.updateBeans介绍

暂无

代码示例

代码示例来源:origin: jenkinsci/winstone

/** Set the connectors for this server.
 * Each connector has this server set as it's ThreadPool and its Handler.
 * @param connectors The connectors to set.
 */
public void setConnectors(Connector[] connectors)
{
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if (connector.getServer() != this)
        throw new IllegalArgumentException("Connector " + connector +
            " cannot be shared among server " + connector.getServer() + " and server " + this);
    }
  }
  Connector[] oldConnectors = getConnectors();
  updateBeans(oldConnectors, connectors);
  _connectors.removeAll(Arrays.asList(oldConnectors));
  if (connectors != null)
    _connectors.addAll(Arrays.asList(connectors));
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/** Set the connectors for this server.
 * Each connector has this server set as it's ThreadPool and its Handler.
 * @param connectors The connectors to set.
 */
public void setConnectors(Connector[] connectors)
{
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if (connector.getServer() != this)
        throw new IllegalArgumentException("Connector " + connector +
            " cannot be shared among server " + connector.getServer() + " and server " + this);
    }
  }
  Connector[] oldConnectors = getConnectors();
  updateBeans(oldConnectors, connectors);
  _connectors.removeAll(Arrays.asList(oldConnectors));
  if (connectors != null)
    _connectors.addAll(Arrays.asList(connectors));
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/** Set the connectors for this server.
 * Each connector has this server set as it's ThreadPool and its Handler.
 * @param connectors The connectors to set.
 */
public void setConnectors(Connector[] connectors)
{
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if (connector.getServer() != this)
        throw new IllegalArgumentException("Connector " + connector +
            " cannot be shared among server " + connector.getServer() + " and server " + this);
    }
  }
  Connector[] oldConnectors = getConnectors();
  updateBeans(oldConnectors, connectors);
  _connectors.removeAll(Arrays.asList(oldConnectors));
  if (connectors != null)
    _connectors.addAll(Arrays.asList(connectors));
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

/** Set the connectors for this server.
 * Each connector has this server set as it's ThreadPool and its Handler.
 * @param connectors The connectors to set.
 */
public void setConnectors(Connector[] connectors)
{
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if (connector.getServer() != this)
        throw new IllegalArgumentException("Connector " + connector +
            " cannot be shared among server " + connector.getServer() + " and server " + this);
    }
  }
  Connector[] oldConnectors = getConnectors();
  updateBeans(oldConnectors, connectors);
  _connectors.removeAll(Arrays.asList(oldConnectors));
  if (connectors != null)
    _connectors.addAll(Arrays.asList(connectors));
}

代码示例来源:origin: Nextdoor/bender

/** Set the connectors for this server.
 * Each connector has this server set as it's ThreadPool and its Handler.
 * @param connectors The connectors to set.
 */
public void setConnectors(Connector[] connectors)
{
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if (connector.getServer() != this)
        throw new IllegalArgumentException("Connector " + connector +
            " cannot be shared among server " + connector.getServer() + " and server " + this);
    }
  }
  Connector[] oldConnectors = getConnectors();
  updateBeans(oldConnectors, connectors);
  _connectors.removeAll(Arrays.asList(oldConnectors));
  if (connectors != null)
    _connectors.addAll(Arrays.asList(connectors));
}

相关文章