public class ConfigSupport
extends java.lang.Object
| Constructor and Description |
|---|
ConfigSupport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyConfigChange(java.nio.file.Path jbossHome,
java.util.List<java.lang.String> configs,
boolean enable) |
static java.util.List<java.lang.String> |
applyLayerChanges(ConfigPlugin plugin,
java.util.List<java.lang.String> layers,
boolean enable) |
static void |
applyLayerChanges(java.nio.file.Path jbossHome,
ConfigPlugin plugin,
boolean enable) |
static void |
assertExists(org.jdom.Element extensions,
java.lang.String message) |
static ConfigContext |
createContext(java.nio.file.Path jbossHome,
java.nio.file.Path configuration,
org.jdom.Document doc) |
static org.jdom.Element |
createElementFromText(java.lang.String xml) |
static org.jdom.Element |
findChildElement(org.jdom.Element parent,
java.lang.String name,
org.jdom.Namespace... supportedNamespaces) |
static org.jdom.Element |
findElementWithAttributeValue(org.jdom.Element element,
java.lang.String name,
org.jdom.Namespace ns,
java.lang.String attrName,
java.lang.String attrValue)
Deprecated.
|
static org.jdom.Element |
findElementWithAttributeValue(org.jdom.Element element,
java.lang.String name,
java.lang.String attrName,
java.lang.String attrValue,
org.jdom.Namespace... supportedNamespaces) |
static java.util.List<org.jdom.Element> |
findProfileElements(org.jdom.Document doc,
org.jdom.Namespace... supportedNamespaces) |
static java.util.List<org.jdom.Element> |
findProfileElements(org.jdom.Document doc,
org.jdom.Namespace ns)
Deprecated.
|
static java.nio.file.Path |
getJBossHome() |
static org.jdom.Element |
loadElementFrom(java.net.URL resource) |
static java.util.Map<java.lang.String,org.jdom.Element> |
mapByAttributeName(java.util.List<org.jdom.Element> elements,
java.lang.String attrName) |
public static ConfigContext createContext(java.nio.file.Path jbossHome, java.nio.file.Path configuration, org.jdom.Document doc)
public static void applyConfigChange(java.nio.file.Path jbossHome,
java.util.List<java.lang.String> configs,
boolean enable)
throws java.lang.Exception
java.lang.Exceptionpublic static void applyLayerChanges(java.nio.file.Path jbossHome,
ConfigPlugin plugin,
boolean enable)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<java.lang.String> applyLayerChanges(ConfigPlugin plugin, java.util.List<java.lang.String> layers, boolean enable) throws java.io.IOException
java.io.IOExceptionpublic static java.nio.file.Path getJBossHome()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static org.jdom.Element createElementFromText(java.lang.String xml)
public static org.jdom.Element loadElementFrom(java.net.URL resource)
@Deprecated
public static org.jdom.Element findElementWithAttributeValue(org.jdom.Element element,
java.lang.String name,
org.jdom.Namespace ns,
java.lang.String attrName,
java.lang.String attrValue)
public static org.jdom.Element findElementWithAttributeValue(org.jdom.Element element,
java.lang.String name,
java.lang.String attrName,
java.lang.String attrValue,
org.jdom.Namespace... supportedNamespaces)
public static org.jdom.Element findChildElement(org.jdom.Element parent,
java.lang.String name,
org.jdom.Namespace... supportedNamespaces)
public static void assertExists(org.jdom.Element extensions,
java.lang.String message)
public static java.util.Map<java.lang.String,org.jdom.Element> mapByAttributeName(java.util.List<org.jdom.Element> elements,
java.lang.String attrName)
@Deprecated
public static java.util.List<org.jdom.Element> findProfileElements(org.jdom.Document doc,
org.jdom.Namespace ns)
public static java.util.List<org.jdom.Element> findProfileElements(org.jdom.Document doc,
org.jdom.Namespace... supportedNamespaces)
Copyright © 2019. All rights reserved.