public abstract class XmlDeployer extends Object implements Deployer
Constructor and Description |
---|
XmlDeployer(DeploymentManager deploymentManager) |
Modifier and Type | Method and Description |
---|---|
void |
addToConfiguration(URI url,
String name,
Node e)
adds a URL to the already configured set of url's this deployer is handling
|
abstract void |
deploy(Node node)
deploy an element
|
void |
deploy(URI url)
Deploy the URL for the first time
|
String[] |
getConfigFileNames()
The name of the configuration files to look for for deployment
|
abstract String[] |
getDefaultConfigFileNames() |
abstract String[] |
getElementTagName()
the names of the elements to deploy
|
String |
getKeyAttribute()
The key attribute for the element, usually 'name' but can be overridden
|
protected Element |
getRootElement(URI url) |
boolean |
isStarted() |
void |
redeploy(URI url)
Redeploys a URL if changed
|
void |
setConfigFileNames(String[] configFileNames) |
void |
start() |
void |
stop() |
abstract void |
undeploy(Node node)
undeploys an element
|
void |
undeploy(URI uri)
Undeploys a resource that has been removed
|
abstract void |
validate(Node rootNode)
Validate the DOM
|
protected static final String NAME_ATTR
public XmlDeployer(DeploymentManager deploymentManager)
public void addToConfiguration(URI url, String name, Node e)
url
- The URL to addname
- the name of the elemente
- .public String getKeyAttribute()
public void start() throws Exception
start
in interface HornetQComponent
Exception
public void stop() throws Exception
stop
in interface HornetQComponent
Exception
public boolean isStarted()
isStarted
in interface HornetQComponent
public String[] getConfigFileNames()
Deployer
getConfigFileNames
in interface Deployer
public void setConfigFileNames(String[] configFileNames)
public abstract String[] getElementTagName()
public abstract String[] getDefaultConfigFileNames()
public abstract void deploy(Node node) throws Exception
node
- the element to deployException
public abstract void validate(Node rootNode) throws Exception
Exception
public abstract void undeploy(Node node) throws Exception
node
- the element to undeployException
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.