public void deploy(VFSDeploymentUnit unit, JBossWebMetaData deployment) throws DeploymentException { VirtualFile facesConfigXml = unit.getMetaDataFile("faces-config.xml"); if (facesConfigXml != null) { // TODO - Pete or Stan } } }
@Override public void undeploy(VFSDeploymentUnit unit, ClassLoadingMetaData deployment) { unit.removeAttachment(VFS_CLASS_PATH); unit.removeAttachment(VFS_EXCLUDES); }
/** * Create a new child structure context * * @param file the candidate file * @param metaData the structure metadata to build * @param parentContext the parentContext * @throws IllegalArgumentException for a null parameter */ public StructureContext(VirtualFile file, StructureMetaData metaData, StructureContext parentContext) { this(getRoot(parentContext), parentContext.getFile(), file, metaData, parentContext.getDeployers(), parentContext); }
public static boolean isEJBDeployment(VFSDeploymentUnit du) { // TODO: this is temporary EJB3 logic Boolean ignoreMe = du.getAttachment(IGNORE_ME_NAME, Boolean.class); if(ignoreMe != null && ignoreMe) return false; boolean ejbxml = du.getMetaDataFile("ejb-jar.xml") != null; boolean jbossxml = du.getMetaDataFile("jboss.xml") != null; return ejbxml || jbossxml; }
public VirtualFile getRoot() { return delegate.getRoot(); }
public WarEjbResolver(DeploymentScope deploymentScope, VFSDeploymentUnit unit, MainDeployerInternals mainDeployer) { super(deploymentScope, unit.getSimpleName()); this.unit = unit; this.mainDeployer = mainDeployer; }
public Object addAttachment(String name, Object attachment) { return unit.addAttachment(name, attachment); } public Object getAttachment(String name)
public Object getAttachment(String name) { return unit.getAttachment(name); } public Object removeAttachment(String name)
/** * Get the matching class paths that belong to this deployment unit. * * @param unit the deployment unit * @return matching class paths * @throws Exception for any error */ protected Iterable<VirtualFile> getClassPaths(VFSDeploymentUnit unit) throws Exception { return unit.getClassPath(); } }
public List<VirtualFile> getMetaDataFiles(VirtualFileFilter filter, MetaDataTypeFilter mdtf) { return delegate.getMetaDataFiles(filter, mdtf); }
/** * Get the parent deployment context * * @return the parent. */ public VirtualFile getParent() { return context.getFile(); }
public void addClassPath(VirtualFile... files) { delegate.addClassPath(files); }
public void prependClassPath(List<VirtualFile> files) { delegate.prependClassPath(files); }
public boolean accepts(VFSDeploymentUnit unit) { for (VFSDeploymentUnitFilter filter : filters) { if (filter.accepts(unit) == false) return false; } return true; } }
public void setRelativeOrder(int order) { deployer.setRelativeOrder(order); }
public int getRelativeOrder() { return deployer.getRelativeOrder(); }
public List<VFSDeploymentUnit> getVFSChildren() { return delegate.getVFSChildren(); } }
public void removeMetaDataLocation(VirtualFile... locations) { delegate.removeMetaDataLocation(locations); }
public void appendClassPath(List<VirtualFile> files) { delegate.appendClassPath(files); }
public List<VirtualFile> getMetaDataFiles(String name, String suffix, MetaDataTypeFilter filter) { return delegate.getMetaDataFiles(name, suffix, filter); }