public class OSGiLoadService extends LoadService
LoadService.BailoutSearcher, LoadService.ClassLoaderSearcher, LoadService.ExtensionSearcher, LoadService.LoadSearcher, LoadService.NormalSearcher, LoadService.ScriptClassSearcher, LoadService.SearchState, LoadService.SourceBailoutSearcher, LoadService.SuffixType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OSGI_BUNDLE_CLASSPATH_SCHEME |
static RubyInstanceConfig.LoadServiceCreator |
OSGI_DEFAULT |
builtinLibraries, 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 Library |
createLibrary(LoadService.SearchState state,
LoadServiceResource resource)
Deprecated.
|
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 Library |
findLibraryBySearchState(LoadService.SearchState state)
Deprecated.
|
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) |
addBuiltinLibrary, addLoadedFeature, addLoadedFeature, addPath, addPaths, addPaths, autoloadRequire, buildClassName, checkEmptyLoad, classpathFilenameFromURL, debugLogFound, debugLogFound, debugLogTry, featureAlreadyLoaded, featureAlreadyLoaded, findBuiltinLibrary, findFileForLoad, findLibraryWithClassloaders, findLibraryWithClassloaders, findLibraryWithoutCWD, getBuiltinLibraries, getClassPathResource, getFileName, getJarFile, getLoadedFeatures, getLoadPath, getLoadPathEntry, init, isJarfileLibrary, isJarfileLibrary, isRequireable, load, loadFromClassLoader, loadPathLooksLikeClasspathURL, loadPathLooksLikeJarURL, provide, provide, reflectedLoad, removeBuiltinLibrary, removeInternalLoadedFeature, require, reraiseRaiseExceptions, searchForRequire, smartLoad, tryLoadingLibraryOrScript, tryLoadingLibraryOrScript, tryResourceAsIs, tryResourceAsIs, tryResourceFromCWD, tryResourceFromDotSlash, tryResourceFromHome, tryResourceFromJarURL, tryResourceFromJarURLWithLoadPath, tryResourceFromLoadPath, tryResourceFromLoadPathOrURL, warnCircularRequire
public 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)
LoadService
searchForLoad
in class LoadService
protected LoadServiceResource findFileInClasspath(java.lang.String name)
findFileInClasspath
in class LoadService
name
- 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 LoadService
protected java.lang.String resolveLoadName(LoadServiceResource foundResource, java.lang.String previousPath)
resolveLoadName
in class LoadService
@Deprecated protected Library findLibraryBySearchState(LoadService.SearchState state)
findLibraryBySearchState
in class LoadService
@Deprecated protected Library createLibrary(LoadService.SearchState state, LoadServiceResource resource)
createLibrary
in class LoadService
Copyright © 2001-2022 JRuby. All Rights Reserved.