public List<DeploymentUnit> getComponents() { return delegate.getComponents(); }
private List<org.jboss.deployers.structure.spi.DeploymentUnit> getChildrenRecursively(final org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit) { List<org.jboss.deployers.structure.spi.DeploymentUnit> allChildren = new ArrayList<org.jboss.deployers.structure.spi.DeploymentUnit>(); List<org.jboss.deployers.structure.spi.DeploymentUnit> children = deploymentUnit.getChildren(); if (children != null && !children.isEmpty()) { allChildren.addAll(children); // find child DU of each child for (org.jboss.deployers.structure.spi.DeploymentUnit child : children) { if (child == null) { continue; } allChildren.addAll(this.getChildrenRecursively(child)); } } // check component DUs too final List<org.jboss.deployers.structure.spi.DeploymentUnit> componentDUs = deploymentUnit.getComponents(); if (componentDUs != null && !componentDUs.isEmpty()) { allChildren.addAll(componentDUs); // find child DU of each component DU for (org.jboss.deployers.structure.spi.DeploymentUnit componentDU : componentDUs) { if (componentDU == null) { continue; } allChildren.addAll(this.getChildrenRecursively(componentDU)); } } return allChildren; }
return attachment; List<DeploymentUnit> components = unit.getComponents(); if (components != null && components.isEmpty() == false)
return deploymentUnit; DeploymentUnit result; for(DeploymentUnit component : deploymentUnit.getComponents())