org.jboss.as.controller.parsing.Namespace.equals()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(12.3k)|赞(0)|评价(0)|浏览(104)

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

Namespace.equals介绍

暂无

代码示例

代码示例来源:origin: org.jboss.as/jboss-as-host-controller

public static ExtensibleConfigurationPersister createHostXmlConfigurationPersister(final ConfigurationFile file, String defaultHostControllerName) {
  HostXml hostXml = new HostXml(defaultHostControllerName);
  BackupXmlConfigurationPersister persister =  new BackupXmlConfigurationPersister(file, new QName(Namespace.CURRENT.getUriString(), "host"), hostXml, hostXml);
  for (Namespace namespace : Namespace.domainValues()) {
    if (!namespace.equals(Namespace.CURRENT)) {
      persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "host"), hostXml);
    }
  }
  return persister;
}

代码示例来源:origin: wildfly/wildfly-core

public static ExtensibleConfigurationPersister createRemoteBackupDomainXmlConfigurationPersister(final File configDir, ExecutorService executorService, ExtensionRegistry extensionRegistry) {
  DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
  File bootFile = new File(configDir, CACHED_DOMAIN_XML_BOOTFILE);
  File file = new File(configDir, CACHED_DOMAIN_XML);
  BackupRemoteDomainXmlPersister persister = new BackupRemoteDomainXmlPersister(file, bootFile, new QName(Namespace.CURRENT.getUriString(), "domain"), domainXml, domainXml);
  for (Namespace namespace : Namespace.domainValues()) {
    if (!namespace.equals(Namespace.CURRENT)) {
      persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "domain"), domainXml);
    }
  }
  extensionRegistry.setWriterRegistry(persister);
  return persister;
}

代码示例来源:origin: org.wildfly.core/wildfly-host-controller

public static ExtensibleConfigurationPersister createRemoteBackupDomainXmlConfigurationPersister(final File configDir, ExecutorService executorService, ExtensionRegistry extensionRegistry) {
  DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
  File bootFile = new File(configDir, CACHED_DOMAIN_XML_BOOTFILE);
  File file = new File(configDir, CACHED_DOMAIN_XML);
  BackupRemoteDomainXmlPersister persister = new BackupRemoteDomainXmlPersister(file, bootFile, new QName(Namespace.CURRENT.getUriString(), "domain"), domainXml, domainXml);
  for (Namespace namespace : Namespace.domainValues()) {
    if (!namespace.equals(Namespace.CURRENT)) {
      persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "domain"), domainXml);
    }
  }
  extensionRegistry.setWriterRegistry(persister);
  return persister;
}

代码示例来源:origin: org.jboss.as/jboss-as-host-controller

public static ExtensibleConfigurationPersister createRemoteBackupDomainXmlConfigurationPersister(final File configDir, ExecutorService executorService, ExtensionRegistry extensionRegistry) {
  DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
  File file = new File(configDir, CACHED_DOMAIN_XML);
  BackupRemoteDomainXmlPersister persister = new BackupRemoteDomainXmlPersister(file, new QName(Namespace.CURRENT.getUriString(), "domain"), domainXml, domainXml);
  for (Namespace namespace : Namespace.domainValues()) {
    if (!namespace.equals(Namespace.CURRENT)) {
      persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "domain"), domainXml);
    }
  }
  extensionRegistry.setWriterRegistry(persister);
  return persister;
}

代码示例来源:origin: org.jboss.as/jboss-as-host-controller

public static ExtensibleConfigurationPersister createCachedRemoteDomainXmlConfigurationPersister(final File configDir, ExecutorService executorService, ExtensionRegistry extensionRegistry) {
  DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
  File file = new File(configDir, CACHED_DOMAIN_XML);
  CachedRemoteDomainXmlPersister persister = new CachedRemoteDomainXmlPersister(file, new QName(Namespace.CURRENT.getUriString(), "domain"), domainXml, domainXml);
  for (Namespace namespace : Namespace.domainValues()) {
    if (!namespace.equals(Namespace.CURRENT)) {
      persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "domain"), domainXml);
    }
  }
  extensionRegistry.setWriterRegistry(persister);
  return persister;
}

代码示例来源:origin: org.jboss.as/jboss-as-host-controller

public static ExtensibleConfigurationPersister createDomainXmlConfigurationPersister(final ConfigurationFile file, ExecutorService executorService, ExtensionRegistry extensionRegistry) {
  DomainXml domainXml = new DomainXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
  BackupXmlConfigurationPersister persister = new BackupXmlConfigurationPersister(file, new QName(Namespace.CURRENT.getUriString(), "domain"), domainXml, domainXml);
  for (Namespace namespace : Namespace.domainValues()) {
    if (!namespace.equals(Namespace.CURRENT)) {
      persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "domain"), domainXml);
    }
  }
  extensionRegistry.setWriterRegistry(persister);
  return persister;
}

代码示例来源:origin: org.wildfly.core/wildfly-host-controller

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: org.wildfly.core/wildfly-host-controller

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: wildfly/wildfly-core

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: wildfly/wildfly-core

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: wildfly/wildfly-core

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: org.wildfly.core/wildfly-host-controller

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: org.wildfly.core/wildfly-host-controller

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: org.wildfly.core/wildfly-host-controller

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: org.wildfly.core/wildfly-host-controller

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: wildfly/wildfly-core

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: wildfly/wildfly-core

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

代码示例来源:origin: wildfly/wildfly-core

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> nodes) throws XMLStreamException {
  if (Element.forName(reader.getLocalName()) != Element.DOMAIN) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readDomainElement(reader, new ModelNode(), nodes);
      return;
    }
  }
  throw unexpectedElement(reader);
}

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

@Override
  public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) {
    ApplicationClientConfigurationPersister persister = new ApplicationClientConfigurationPersister(earPath, deploymentName, options.hostUrl,options.propertiesFile, params,
        serverEnvironment.getServerConfigurationFile().getBootFile(), rootElement, parser);
    for (Namespace namespace : Namespace.domainValues()) {
      if (!namespace.equals(Namespace.CURRENT)) {
        persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "server"), parser);
      }
    }
    extensionRegistry.setWriterRegistry(persister);
    return persister;
  }
};

代码示例来源:origin: org.wildfly.core/wildfly-host-controller

@Override
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> operationList)
    throws XMLStreamException {
  final ModelNode address = new ModelNode().setEmptyList();
  if (Element.forName(reader.getLocalName()) != Element.HOST) {
    throw unexpectedElement(reader);
  }
  // Instead of having to list the remaining versions we just check it is actually a valid version.
  for (Namespace current : Namespace.domainValues()) {
    if (namespace.equals(current)) {
      readHostElement(reader, address, operationList);
      return;
    }
  }
  throw unexpectedElement(reader);
}

相关文章