org.wildfly.extras.creaper.commands.foundation.offline.xml
Class Subtree

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.foundation.offline.xml.Subtree

public final class Subtree
extends Object

This is the primary mechanism used for unifying access to standalone and domain configuration files. The trick is that the transformation script doesn't work on the file, it doesn't even work on the entire XML document (unless explicitly requested using root()), it instead works on a set of subtrees. The kye here is that for a vast majority of commonly used subtrees, it's possible to devise a single specification that can address them correctly both in standalone and domain.

For example, Subtree.subsystem("infinispan") is a unique location both in standalone.xml and domain.xml, given that there is a concept of default profile for the domain use.

Configuration files for domain have more concepts than the standalone ones, so there are domain-specific features here, but their use is minor.


Method Summary
static Subtree domainController()
           
static Subtree extensions()
           
static Subtree interfaces()
           
static Subtree jvms()
           
static Subtree management()
           
static Subtree paths()
           
static Subtree profile()
           
static Subtree profiles()
           
static Subtree root()
           
static Subtree serverGroups()
           
static Subtree servers()
           
static Subtree socketBindingGroup()
           
static Subtree socketBindingGroups()
           
static Subtree subsystem(String subsystemName)
           
static Subtree subsystemInProfile(String profileName, String subsystemName)
           
static Subtree systemProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

root

public static Subtree root()

extensions

public static Subtree extensions()

systemProperties

public static Subtree systemProperties()

paths

public static Subtree paths()

management

public static Subtree management()

profile

public static Subtree profile()

subsystem

public static Subtree subsystem(String subsystemName)

interfaces

public static Subtree interfaces()

socketBindingGroup

public static Subtree socketBindingGroup()

profiles

public static Subtree profiles()

subsystemInProfile

public static Subtree subsystemInProfile(String profileName,
                                         String subsystemName)

socketBindingGroups

public static Subtree socketBindingGroups()

serverGroups

public static Subtree serverGroups()

domainController

public static Subtree domainController()

jvms

public static Subtree jvms()

servers

public static Subtree servers()


Copyright © 2020. All rights reserved.