/** * Set the relative order to 0 by default. */ public DeclaredStructure() { setRelativeOrder(0); }
/** * Iterate through the contexts and mount anything that looks like an archive * * @param structureContext the context * @throws IOException if errors occur during mounting */ protected void mountChildren(StructureContext structureContext) throws IOException { final StructureMetaData structureMetaData = structureContext.getMetaData(); final VirtualFile structureRoot = structureContext.getFile(); for(ContextInfo contextInfo : structureMetaData.getContexts()) { final String contextPath = contextInfo.getPath(); if(hasValidSuffix(contextPath)) { final VirtualFile child = structureRoot.getChild(contextPath); if(child.exists() && child.isFile()) { if ((contextInfo.getModificationType() == ModificationType.EXPLODE) || isWAR(child)) performExpandedMount(child); else performMount(child); } } } }
if (isLeaf(file) == false) Unmarshaller unmarshaller = factory.newUnmarshaller(); unmarshaller.unmarshal(url.toString(), ofactory, structureContext.getMetaData()); mountChildren(structureContext); isJBossStructure = true;
if (isLeaf(file) == false)
/** * Set the relative order to 0 by default. * * @param suffixes the suffixes */ public DeclaredStructure(Set<String> suffixes) { setRelativeOrder(0); if (suffixes == null) throw new IllegalArgumentException("Null suffixes"); this.suffixes = suffixes; }