public class ConfigReaderTools extends AbstractReader implements XMLReader
Modifier and Type | Field and Description |
---|---|
private String |
lib
Tools library directory (relative under GlassFish home).
|
private static String |
LIB_ATTR
lib XML element attribute name. |
(package private) static String |
NODE
tools XML element name. |
(package private) Tools |
tools
Tools configuration read from XML.
|
private ToolsAsadminReader |
toolsAsadminReader
asadmin XML element reader. |
path
Constructor and Description |
---|
ConfigReaderTools(String pathPrefix)
Creates an instance of
tools configuration
XML element reader. |
Modifier and Type | Method and Description |
---|---|
void |
endNode(String qname)
Finish
tools element processing. |
(package private) String |
getJar()
Get asadmin tool JAR.
|
(package private) String |
getLib()
Get tools library directory (relative under GlassFish home).
|
List<TreeParser.Path> |
getPathsToListen()
Provide paths to listen on.
|
void |
readAttributes(String qname,
Attributes attributes)
Process attributes from current XML element.
|
(package private) void |
reset()
Reset this XML element reader.
|
getPath
readCData, readChildren
static final String NODE
tools
XML element name.private static final String LIB_ATTR
lib
XML element attribute name.private String lib
private final ToolsAsadminReader toolsAsadminReader
asadmin
XML element reader.Tools tools
ConfigReaderTools(String pathPrefix)
tools
configuration
XML element reader.
pathPrefix
- Tree parser path prefix to be prepended before
current XML element.public List<TreeParser.Path> getPathsToListen()
tools
element and it's content.
getPathsToListen
in interface XMLReader
public void readAttributes(String qname, Attributes attributes) throws SAXException
readAttributes
in class TreeParser.NodeListener
qname
- Not used.attributes
- List of XML attributes.SAXException
- When any problem occurs.public void endNode(String qname) throws SAXException
tools
element processing.
endNode
in class TreeParser.NodeListener
name
- Current XML element name.ServerConfigException
- when more than one tools
XML elements were found.SAXException
String getLib()
String getJar()
void reset()
Copyright © 2013. All Rights Reserved.