/** * Create some meta data. Invokes parse(unit, name, suffix) if there is not already a * metadata * * @param unit the deployment unit * @param name the name * @param suffix the suffix * @param key the key into the managed objects * @throws DeploymentException for any error */ protected void createMetaData(DeploymentUnit unit, String name, String suffix, String key) throws DeploymentException { createMetaData(unit, Collections.singleton(name), suffix, key); }
/** * 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()); }
/** * 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()); }
public void deploy(DeploymentUnit unit) throws DeploymentException { if (accepts(unit) == false) return; if (hasSingleName()) createMetaData(unit, getName(), suffix); else createMetaData(unit, names, suffix); }