[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-commit] r1338 - jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils

Author: hmalphett
Date: 2010-03-04 21:26:29 -0500 (Thu, 04 Mar 2010)
New Revision: 1338

Modified:
   jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/BundleClassLoaderHelper.java
   jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/BundleFileLocatorHelper.java
Log:
add the default helpers as static objects as thy are quite useful to the outside world as it

Modified: jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/BundleClassLoaderHelper.java
===================================================================
--- jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/BundleClassLoaderHelper.java	2010-03-03 22:44:24 UTC (rev 1337)
+++ jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/BundleClassLoaderHelper.java	2010-03-05 02:26:29 UTC (rev 1338)
@@ -12,6 +12,7 @@
 // ========================================================================
 package org.eclipse.jetty.osgi.boot.utils;
 
+import org.eclipse.jetty.osgi.boot.utils.internal.DefaultBundleClassLoaderHelper;
 import org.osgi.framework.Bundle;
 
 /**
@@ -35,6 +36,9 @@
     /** The name of the custom implementation for this interface in a fragment. */
     public static final String CLASS_NAME = "org.eclipse.jetty.osgi.boot.utils.BundleClassLoaderHelperImpl";
 
+    /** The default instance supports felix and equinox */
+    public static BundleClassLoaderHelper DEFAULT = new DefaultBundleClassLoaderHelper();
+
     /**
      * @return The classloader of a given bundle. Assuming the bundle is
      *         started.

Modified: jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/BundleFileLocatorHelper.java
===================================================================
--- jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/BundleFileLocatorHelper.java	2010-03-03 22:44:24 UTC (rev 1337)
+++ jetty/trunk/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/utils/BundleFileLocatorHelper.java	2010-03-05 02:26:29 UTC (rev 1338)
@@ -14,6 +14,7 @@
 
 import java.io.File;
 
+import org.eclipse.jetty.osgi.boot.utils.internal.DefaultFileLocatorHelper;
 import org.osgi.framework.Bundle;
 
 /**
@@ -28,6 +29,10 @@
     /** The name of the custom implementation for this interface in a fragment. */
     public static final String CLASS_NAME = "org.eclipse.jetty.osgi.boot.utils.FileLocatorHelperImpl";
 
+    /** The default instance supports felix and equinox */
+    public static BundleFileLocatorHelper DEFAULT = new DefaultFileLocatorHelper();
+
+
     /**
      * Works with equinox, felix, nuxeo and probably more. Not exactly in the
      * spirit of OSGi but quite necessary to support self-contained webapps and