[jboss-cvs] JBossAS SVN: r69555 - projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/structure/helpers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Feb 2 13:43:06 EST 2008


Author: alesj
Date: 2008-02-02 13:43:06 -0500 (Sat, 02 Feb 2008)
New Revision: 69555

Modified:
   projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/structure/helpers/AbstractStructureDeployer.java
Log:
Split context info order setting.

Modified: projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/structure/helpers/AbstractStructureDeployer.java
===================================================================
--- projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/structure/helpers/AbstractStructureDeployer.java	2008-02-02 15:24:06 UTC (rev 69554)
+++ projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/structure/helpers/AbstractStructureDeployer.java	2008-02-02 18:43:06 UTC (rev 69555)
@@ -277,12 +277,24 @@
       else
          result = StructureMetaDataFactory.createContextInfo("", null);
 
-      if (result != null && contextInfoOrder != null)
-         result.setRelativeOrder(contextInfoOrder);
+      applyContextInfoOrder(root, result);
 
       structureMetaData.addContext(result);
       if (trace)
          log.trace("Added context " + result + " from " + root.getName());
       return result;
    }
+
+   /**
+    * Apply context info order.
+    * Can be overridden for specific root.
+    *
+    * @param root the root file
+    * @param result the new context info
+    */
+   protected void applyContextInfoOrder(VirtualFile root, ContextInfo result)
+   {
+      if (result != null && contextInfoOrder != null)
+         result.setRelativeOrder(contextInfoOrder);
+   }
 }




More information about the jboss-cvs-commits mailing list