public class OSGiLoadService extends LoadService
LoadService.LoadPathMethods, LoadService.SuffixType| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OSGI_BUNDLE_CLASSPATH_SCHEME |
static RubyInstanceConfig.LoadServiceCreator |
OSGI_DEFAULT |
extensionPattern, jarFiles, librarySearcher, loadedFeatures, loadPath, runtime, sourcePattern| Constructor and Description |
|---|
OSGiLoadService(Ruby runtime)
Default constructor
Optional constructor (why?)
|
| Modifier and Type | Method and Description |
|---|---|
protected LibrarySearcher.FoundLibrary |
createLibrary(java.lang.String baseName,
java.lang.String loadName,
LoadServiceResource resource)
Support for 'bundle:/' to look for libraries in osgi bundles.
|
protected LoadServiceResource |
findFileInClasspath(java.lang.String name)
Support for 'bundle:/' to look for libraries in osgi bundles
or classes or ruby files.
|
protected java.lang.String |
resolveLoadName(LoadServiceResource foundResource,
java.lang.String previousPath) |
protected LibrarySearcher.FoundLibrary |
searchForLoad(java.lang.String searchFile)
Replaces findLibraryBySearchState but split off for load.
|
protected LibrarySearcher.FoundLibrary |
searchForRequire(java.lang.String searchFile) |
addPath, addPaths, addPaths, autoloadRequire, checkEmptyLoad, classpathFilenameFromURL, debugLogFound, debugLogFound, debugLogTry, featureAlreadyLoaded, featureAlreadyLoaded, findLibraryWithClassloaders, getClassPathResource, getLoadedFeatures, getLoadPath, getLoadPathEntry, getWrapperSelf, init, isJarfileLibrary, isRequireable, load, load, loadFromClassLoader, provide, reflectedLoad, require, searchForRequire, tryLoadingLibraryOrScript, warnCircularRequirepublic static final java.lang.String OSGI_BUNDLE_CLASSPATH_SCHEME
public static final RubyInstanceConfig.LoadServiceCreator OSGI_DEFAULT
public OSGiLoadService(Ruby runtime)
runtime - protected LibrarySearcher.FoundLibrary searchForRequire(java.lang.String searchFile)
protected LibrarySearcher.FoundLibrary searchForLoad(java.lang.String searchFile)
LoadServicesearchForLoad in class LoadServiceprotected LoadServiceResource findFileInClasspath(java.lang.String name)
findFileInClasspath in class LoadServicename - the file to find, this is a path nameprotected LibrarySearcher.FoundLibrary createLibrary(java.lang.String baseName, java.lang.String loadName, LoadServiceResource resource)
createLibrary in class LoadServiceprotected java.lang.String resolveLoadName(LoadServiceResource foundResource, java.lang.String previousPath)
resolveLoadName in class LoadServiceCopyright © 2001-2023 JRuby. All Rights Reserved.