|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.osgi.boot.utils.internal.DefaultFileLocatorHelper
public class DefaultFileLocatorHelper
From a bundle to its location on the filesystem. Assumes the bundle is not a jar.
Field Summary |
---|
Fields inherited from interface org.eclipse.jetty.osgi.boot.utils.BundleFileLocatorHelper |
---|
CLASS_NAME, DEFAULT |
Constructor Summary | |
---|---|
DefaultFileLocatorHelper()
|
Method Summary | |
---|---|
File |
getBundleInstallLocation(org.osgi.framework.Bundle bundle)
Works with equinox, felix, nuxeo and probably more. |
File |
getFileInBundle(org.osgi.framework.Bundle bundle,
String path)
Locate a file inside a bundle. |
File[] |
locateJarsInsideBundle(org.osgi.framework.Bundle bundle)
If the bundle is a jar, returns the jar. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFileLocatorHelper()
Method Detail |
---|
public File getBundleInstallLocation(org.osgi.framework.Bundle bundle) throws Exception
Currently only works with bundles that are not jar.
getBundleInstallLocation
in interface BundleFileLocatorHelper
bundle
- The bundle
Exception
public File getFileInBundle(org.osgi.framework.Bundle bundle, String path) throws Exception
getFileInBundle
in interface BundleFileLocatorHelper
bundle
- path
-
Exception
public File[] locateJarsInsideBundle(org.osgi.framework.Bundle bundle) throws Exception
Good enough for our purpose (TldLocationsCache when it scans for tld files inside jars alone. In fact we only support the second situation for development purpose where the bundle was imported in pde and the classes kept in a jar.
locateJarsInsideBundle
in interface BundleFileLocatorHelper
bundle
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |