|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.metadata.ServiceMetaDataParser
public class ServiceMetaDataParser
ServiceMetaDataParser This class is based on the old ServiceConfigurator/Creator.
Constructor Summary | |
---|---|
ServiceMetaDataParser(Element config)
Create a new service meta data parser |
Method Summary | |
---|---|
static String |
getElementTextContent(Element element)
Get an element's text content, looking for "trim" and "replace" attributes on the element to determine whether to trim the text and/or perform system property substitution. |
static String |
getElementTextContent(Element element,
boolean trim,
boolean replace)
Get an elements text content |
static String |
getRawElementTextContent(Element element)
|
static boolean |
getReplace(Element element)
|
static boolean |
getTrim(Element element)
|
List<ServiceMetaData> |
parse()
Parse the xml |
static Exception |
rethrow(String context,
Throwable t)
Rethrow an error as an exception |
static String |
trimAndReplace(String rawText,
boolean trim,
boolean replace)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceMetaDataParser(Element config)
config
- the xml configMethod Detail |
---|
public static Exception rethrow(String context, Throwable t) throws Exception
context
- the contextt
- the original throwable
Exception
- alwayspublic List<ServiceMetaData> parse() throws Exception
Exception
- for any errorpublic static String getElementTextContent(Element element) throws Exception
element
- the element
Exception
- for any errorpublic static boolean getTrim(Element element)
public static boolean getReplace(Element element)
public static String getElementTextContent(Element element, boolean trim, boolean replace) throws Exception
element
- the elementtrim
- whether to trimreplace
- whetehr to replace properties
Exception
- for any errorpublic static String getRawElementTextContent(Element element)
public static String trimAndReplace(String rawText, boolean trim, boolean replace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |