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