public class VfsBundle extends Object
| Constructor and Description |
|---|
VfsBundle(org.osgi.framework.Bundle bundle)
Constructor.
|
public VfsBundle(org.osgi.framework.Bundle bundle)
bundle - public File asFile(URL url)
File that points to directory on the file
system. However, if the URL points to a JAR within the bundle, then this
method is responsible for figuring out which JAR is being referenced and
then returning a File pointing to that JAR.
The approach to figuring out what the URL points to is as follows:
1) Get the SHA1 hash of the MANIFEST.MF file returned via the URL
2) Look up the File previously registered to that hash valueurl - Copyright © 2013–2015 JBoss, a division of Red Hat. All rights reserved.