public void internalDeploy(DeploymentUnit unit) throws DeploymentException { T deployment = getAttachment(unit, getInput()); if (deployment != null) deploy(unit, deployment); }
/** * Create a new AbstractSimpleRealDeployer * * @param input the input type * @throws IllegalArgumentException for a null input */ public AbstractSimpleRealDeployer(Class<T> input) { if (input == null) throw new IllegalArgumentException("Null input"); setInput(input); }
public void internalUndeploy(DeploymentUnit unit) { T deployment = getAttachment(unit, getInput()); if (deployment != null) undeploy(unit, deployment); }
@Override public void deploy(DeploymentUnit unit, PersistenceUnitMetaData deployment) throws DeploymentException { DeploymentUnit wrapper = wrap(unit); delegate.deploy(wrapper, deployment); }
public PUHackDeployer(AbstractSimpleRealDeployer<PersistenceUnitMetaData> delegate) { super(PersistenceUnitMetaData.class); if (delegate == null) throw new IllegalArgumentException("Null delegate deployer"); this.delegate = delegate; setComponentsOnly(delegate.isComponentsOnly()); addOutput(BeanMetaData.class); }