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 |
findElementWithAttributeValue(org.jdom.Element element,
String name,
org.jdom.Namespace ns,
String attrName,
String attrValue) |
static List<org.jdom.Element> |
findProfileElements(org.jdom.Document doc,
org.jdom.Namespace ns) |
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)
public static org.jdom.Element findElementWithAttributeValue(org.jdom.Element element,
String name,
org.jdom.Namespace ns,
String attrName,
String attrValue)
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)
public static List<org.jdom.Element> findProfileElements(org.jdom.Document doc, org.jdom.Namespace ns)
Copyright © 2016. All rights reserved.