Package org.jruby.embed.osgi.internal
Class OSGiLoadService
java.lang.Object
org.jruby.runtime.load.LoadService
org.jruby.embed.osgi.internal.OSGiLoadService
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jruby.runtime.load.LoadService
LoadService.BailoutSearcher, LoadService.ClassLoaderSearcher, LoadService.ExtensionSearcher, LoadService.LoadSearcher, LoadService.NormalSearcher, LoadService.ScriptClassSearcher, LoadService.SearchState, LoadService.SourceBailoutSearcher, LoadService.SuffixType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final RubyInstanceConfig.LoadServiceCreatorFields inherited from class org.jruby.runtime.load.LoadService
builtinLibraries, extensionPattern, jarFiles, librarySearcher, loadedFeatures, loadPath, runtime, sourcePattern -
Constructor Summary
ConstructorsConstructorDescriptionOSGiLoadService(Ruby runtime) Default constructor Optional constructor (why?) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcleanupFindName(String name) Remove the extension when they are misleading.protected LibrarySearcher.FoundLibrarycreateLibrary(String baseName, String loadName, LoadServiceResource resource) Support for 'bundle:/' to look for libraries in osgi bundles.protected LibrarycreateLibrary(LoadService.SearchState state, LoadServiceResource resource) Deprecated.protected LoadServiceResourcefindFileInClasspath(String name) Support for 'bundle:/' to look for libraries in osgi bundles or classes or ruby files.protected LibraryDeprecated.protected StringresolveLoadName(LoadServiceResource foundResource, String previousPath) protected LibrarySearcher.FoundLibrarysearchForLoad(String searchFile) Replaces findLibraryBySearchState but split off for load.protected LibrarySearcher.FoundLibrarysearchForRequire(String searchFile) Methods inherited from class org.jruby.runtime.load.LoadService
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
-
Field Details
-
OSGI_BUNDLE_CLASSPATH_SCHEME
- See Also:
-
OSGI_DEFAULT
-
-
Constructor Details
-
OSGiLoadService
Default constructor Optional constructor (why?)- Parameters:
runtime-
-
-
Method Details
-
searchForRequire
-
searchForLoad
Description copied from class:LoadServiceReplaces findLibraryBySearchState but split off for load. Needed for OSGiLoadService to override.- Overrides:
searchForLoadin classLoadService
-
findFileInClasspath
Support for 'bundle:/' to look for libraries in osgi bundles or classes or ruby files.- Overrides:
findFileInClasspathin classLoadService- Parameters:
name- the file to find, this is a path name- Returns:
- the correct file
-
createLibrary
protected LibrarySearcher.FoundLibrary createLibrary(String baseName, String loadName, LoadServiceResource resource) Support for 'bundle:/' to look for libraries in osgi bundles.- Overrides:
createLibraryin classLoadService
-
cleanupFindName
Remove the extension when they are misleading.- Parameters:
name-- Returns:
-
resolveLoadName
- Overrides:
resolveLoadNamein classLoadService
-
findLibraryBySearchState
Deprecated.- Overrides:
findLibraryBySearchStatein classLoadService
-
createLibrary
@Deprecated protected Library createLibrary(LoadService.SearchState state, LoadServiceResource resource) Deprecated.- Overrides:
createLibraryin classLoadService
-