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
Exception
public static void applyLayerChanges(Path jbossHome, ConfigPlugin plugin, boolean enable) throws IOException
IOException
public static List<String> applyLayerChanges(ConfigPlugin plugin, List<String> layers, boolean enable) throws IOException
IOException
public static Path getJBossHome() throws UnsupportedEncodingException
UnsupportedEncodingException
public 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 © 2015. All rights reserved.