public class OSGiFileLocator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JRUBY_SYMBOLIC_NAME |
Constructor and Description |
---|
OSGiFileLocator() |
Modifier and Type | Method and Description |
---|---|
static org.osgi.framework.Bundle |
getBundle(java.lang.String symbolicName) |
static java.io.File |
getFileInBundle(org.osgi.framework.Bundle bundle,
java.lang.String path) |
static java.io.File |
getFileInBundle(java.lang.String symbolicName,
java.lang.String path) |
static java.net.URL |
getFileURL(java.net.URL url)
Only useful for equinox: on felix we get the file:// url already.
|
static java.io.File |
getJRubyHomeFolder() |
static java.net.URL |
getLocalURL(java.net.URL url)
Only useful for equinox: on felix we get the file:// or jar:// url already.
|
public static final java.lang.String JRUBY_SYMBOLIC_NAME
public static java.io.File getJRubyHomeFolder() throws java.io.IOException
java.io.IOException
public static java.io.File getFileInBundle(java.lang.String symbolicName, java.lang.String path) throws java.io.IOException
java.io.IOException
public static java.io.File getFileInBundle(org.osgi.framework.Bundle bundle, java.lang.String path) throws java.io.IOException
java.io.IOException
public static org.osgi.framework.Bundle getBundle(java.lang.String symbolicName)
symbolicName
- public static java.net.URL getLocalURL(java.net.URL url)
Get a URL to the bundle entry that uses a common protocol (i.e. file: jar: or http: etc.).
public static java.net.URL getFileURL(java.net.URL url)
Get a URL to the content of the bundle entry that uses the file: protocol. The content of the bundle entry may be downloaded or extracted to the local file system in order to create a file: URL.
Copyright © 2002-2009 JRuby Team. All Rights Reserved.