public void internalUndeploy(DeploymentUnit unit) { undeployComponents(unit); super.internalUndeploy(unit); }
public <T> T search(DeploymentUnit unit, Class<T> expectedType) { return search(unit, AbstractAttachmentLocatorType.checkExpectedType(expectedType), expectedType); }
public void deploy(DeploymentUnit unit) throws DeploymentException { if (accepts(unit) == false) return; if (hasSingleName()) createMetaData(unit, getName(), suffix); else createMetaData(unit, names, suffix); }
public void internalDeploy(DeploymentUnit unit) throws DeploymentException { T deployment = getAttachment(unit, getInput()); if (deployment != null) deploy(unit, deployment); }
/** * Create a new AbstractClassLoaderDeployer. */ public AbstractClassLoaderDeployer() { setStage(DeploymentStages.CLASSLOADER); setInput(ClassLoaderFactory.class); setOutput(java.lang.ClassLoader.class); setAllInputs(true); }
/** * Create some meta data. Calls createMetaData(unit, name, suffix, getDeploymentType().getName()). * * @param unit the deployment unit * @param name the name * @param suffix the suffix * @throws DeploymentException for any error */ protected void createMetaData(DeploymentUnit unit, String name, String suffix) throws DeploymentException { createMetaData(unit, name, suffix, getAttachmentKey()); }
public final void deploy(DeploymentUnit unit) throws DeploymentException { if (hasAllRequiredInputs(unit)) { internalDeploy(unit); } }
public <T> T search(DeploymentUnit unit, String name, Class<T> expectedType) { return AttachmentLocator.searchAncestors(unit, name, expectedType); } }
public <T> T search(DeploymentUnit unit, Class<T> expectedType) { return search(unit, checkExpectedType(expectedType), expectedType); } }
/** * Create a new AbstractParsingDeployer. */ public AbstractParsingDeployer() { setStage(DeploymentStages.PARSE); } }
/** * Set the input * * @param input the input */ public void setInput(Class<?> input) { addInput(input); this.input = input; }
/** * Set the output * * @param output the outputs */ public void setOutput(Class<?> output) { addOutput(output); this.output = output; }
protected void deployComponents(DeploymentUnit unit) throws DeploymentException { if (compVisitor == null) return; deploy(unit, compVisitor); }
@SuppressWarnings("unchecked") @Override public Class<T> getOutput() { return (Class<T>) super.getOutput(); }
/** * Create a new AbstractRealDeployerWithInput. * * @param input the input */ public AbstractRealDeployerWithInput(Class<T> input) { setInput(input); }
/** * Create a new AbstractComponentDeployer. */ public AbstractComponentDeployer() { setAllInputs(true); }
protected void undeployComponents(DeploymentUnit unit) { undeploy(unit, compVisitor); } }
/** * Set the components only. * * @param componentsOnly the componentsOnly. */ public void setComponentsOnly(boolean componentsOnly) { this.componentsOnly = componentsOnly; setWantComponents(true); }
/** * Create a new AbstractRealDeployer. */ public AbstractRealDeployer() { setStage(DeploymentStages.REAL); }
/** * Create some meta data. Calls createMetaData(unit, name, suffix, getDeploymentType().getName()). * * @param unit the deployment unit * @param names the names * @param suffix the suffix * @throws DeploymentException for any error */ protected void createMetaData(DeploymentUnit unit, Set<String> names, String suffix) throws DeploymentException { createMetaData(unit, names, suffix, getAttachmentKey()); }