public abstract class XmlDeployer extends Object implements Deployer, HornetQComponent
| Constructor and Description |
|---|
XmlDeployer(DeploymentManager deploymentManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToConfiguration(URL 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(URL 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 theelement, usually 'name' but can be overridden
|
protected Element |
getRootElement(URL url) |
boolean |
isStarted() |
void |
redeploy(URL url)
Redeploys a URL if changed
|
void |
setConfigFileNames(String[] configFileNames) |
void |
start() |
void |
stop() |
abstract void |
undeploy(Node node)
undeploys an element
|
void |
undeploy(URL url)
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(URL 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 HornetQComponentExceptionpublic void stop()
throws Exception
stop in interface HornetQComponentExceptionpublic boolean isStarted()
isStarted in interface HornetQComponentpublic String[] getConfigFileNames()
DeployergetConfigFileNames in interface Deployerpublic 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
Exceptionpublic abstract void undeploy(Node node) throws Exception
node - the element to undeployException - .Copyright © 2012 JBoss by Red Hat. All Rights Reserved.