[jboss-dev-forums] [JBoss OSGi Development] - Should BundleStructureDeployer add embedded archives ?

thomas.diesler@jboss.com do-not-reply at jboss.com
Thu Oct 8 04:31:28 EDT 2009


Currently BundleStructureDeployer adds embedded archives like this


  |          // Create a context for this jar file with META-INF as the location for metadata
  |          context = createContext(structureContext, "META-INF");
  | 
  |          // The classpath is the root
  |          addClassPath(structureContext, file, true, true, context);
  |          
  |          // Add archive children to the classpath 
  |          for (VirtualFile child : root.getChildren())
  |          {
  |             if (child.isArchive())
  |                addClassPath(structureContext, child, true, true, context);
  |          }
  | 

In this post http://www.jboss.org/index.html?module=bb&op=viewtopic&t=162196

I describe how Bundle-ClassPath entries cause root files in the classloading policy.

Should the structure deployer also be Bundle-ClassPath aware or should it perhaps not handle embedded jars at all? 

Please advice.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259295#4259295

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259295



More information about the jboss-dev-forums mailing list