org.jboss.deployers.vfs.deployer.kernel
Class BeanMetaDataFactoryVisitor<T>

java.lang.Object
  extended by org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor<T>
Type Parameters:
T - exact attachment type
All Implemented Interfaces:
DeploymentVisitor<T>
Direct Known Subclasses:
KernelDeploymentDeployer.BeanMetaDataVisitor, KernelDeploymentDeployer.KernelDeploymentVisitor

public abstract class BeanMetaDataFactoryVisitor<T>
extends Object
implements DeploymentVisitor<T>

BeanMetaDataVisitor.

Author:
Ales Justin

Constructor Summary
BeanMetaDataFactoryVisitor()
           
 
Method Summary
protected static void addBeanComponent(DeploymentUnit unit, org.jboss.beans.metadata.spi.BeanMetaData bean)
          Add bean component.
 void deploy(DeploymentUnit unit, T deployment)
          Deploy the deployment
protected abstract  List<org.jboss.beans.metadata.spi.BeanMetaData> getBeans(T deployment)
          Get beans from deployment.
protected static void removeBeanComponent(DeploymentUnit unit, org.jboss.beans.metadata.spi.BeanMetaData bean)
          Remove bean component.
protected  void safeRemoveBeanComponent(DeploymentUnit unit, org.jboss.beans.metadata.spi.BeanMetaData bean)
          Ignore all error during component removal.
 void undeploy(DeploymentUnit unit, T deployment)
          Undeploy the deployment
 
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

BeanMetaDataFactoryVisitor

public BeanMetaDataFactoryVisitor()
Method Detail

addBeanComponent

protected static void addBeanComponent(DeploymentUnit unit,
                                       org.jboss.beans.metadata.spi.BeanMetaData bean)
Add bean component.

Parameters:
unit - the deployment unit
bean - the bean metadata

removeBeanComponent

protected static void removeBeanComponent(DeploymentUnit unit,
                                          org.jboss.beans.metadata.spi.BeanMetaData bean)
Remove bean component.

Parameters:
unit - the deployment unit
bean - the bean metadata

safeRemoveBeanComponent

protected void safeRemoveBeanComponent(DeploymentUnit unit,
                                       org.jboss.beans.metadata.spi.BeanMetaData bean)
Ignore all error during component removal.

Parameters:
unit - the deployment unit
bean - the bean metadata

getBeans

protected abstract List<org.jboss.beans.metadata.spi.BeanMetaData> getBeans(T deployment)
Get beans from deployment.

Parameters:
deployment - the deployment
Returns:
list of beans

deploy

public void deploy(DeploymentUnit unit,
                   T deployment)
            throws DeploymentException
Description copied from interface: DeploymentVisitor
Deploy the deployment

Specified by:
deploy in interface DeploymentVisitor<T>
Parameters:
unit - the deployment unit
deployment - the deployment
Throws:
DeploymentException - the deployment exception

undeploy

public void undeploy(DeploymentUnit unit,
                     T deployment)
Description copied from interface: DeploymentVisitor
Undeploy the deployment

Specified by:
undeploy in interface DeploymentVisitor<T>
Parameters:
unit - the deployment unit
deployment - the deployment


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.