|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.spi.deployer.helpers.ComponentAdapter<C>
org.jboss.deployers.spi.deployer.helpers.AbstractDeploymentVisitor<C,T>
C - exact component typeT - exact deployment typepublic abstract class AbstractDeploymentVisitor<C,T>
Simple deployment visitor.
| Constructor Summary | |
|---|---|
AbstractDeploymentVisitor()
|
|
| Method Summary | |
|---|---|
void |
deploy(DeploymentUnit unit,
T deployment)
Deploy the deployment |
protected String |
getAttachmentName(C attachment)
Get attachment name. |
protected abstract List<? extends C> |
getComponents(T deployment)
Get components from deployment. |
protected abstract Class<C> |
getComponentType()
Get the component type. |
protected void |
safeRemoveComponent(DeploymentUnit unit,
C attachment)
Ignore all error during component removal. |
void |
undeploy(DeploymentUnit unit,
T deployment)
Undeploy the deployment |
| Methods inherited from class org.jboss.deployers.spi.deployer.helpers.ComponentAdapter |
|---|
addComponent, getComponentName, removeComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.deployers.spi.deployer.helpers.DeploymentVisitor |
|---|
getVisitorType |
| Constructor Detail |
|---|
public AbstractDeploymentVisitor()
| Method Detail |
|---|
protected String getAttachmentName(C attachment)
ComponentAdapter
getAttachmentName in class ComponentAdapter<C>attachment - the attachment
protected abstract List<? extends C> getComponents(T deployment)
deployment - the deployment
protected abstract Class<C> getComponentType()
public void deploy(DeploymentUnit unit,
T deployment)
throws DeploymentException
DeploymentVisitor
deploy in interface DeploymentVisitor<T>unit - the deployment unitdeployment - the deployment
DeploymentException - the deployment exception
public void undeploy(DeploymentUnit unit,
T deployment)
DeploymentVisitor
undeploy in interface DeploymentVisitor<T>unit - the deployment unitdeployment - the deployment
protected void safeRemoveComponent(DeploymentUnit unit,
C attachment)
unit - the deployment unitattachment - the attachment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||