add the default helpers as static objects as thy are quite useful to the outside world as it
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1338 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
67d656ea39
commit
5f9b092fc0
|
@ -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 @@ public interface BundleClassLoaderHelper
|
|||
/** 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.
|
||||
|
|
|
@ -14,6 +14,7 @@ package org.eclipse.jetty.osgi.boot.utils;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
import org.eclipse.jetty.osgi.boot.utils.internal.DefaultFileLocatorHelper;
|
||||
import org.osgi.framework.Bundle;
|
||||
|
||||
/**
|
||||
|
@ -28,6 +29,10 @@ public interface BundleFileLocatorHelper
|
|||
/** 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
|
||||
|
|
Loading…
Reference in New Issue