public class OSGiLoadService extends LoadService
LoadService.AlreadyLoaded, 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 |
autoloadMap, builtinLibraries, caseInsensitiveFS, extensionPattern, jarFiles, loadedFeatures, loadedFeaturesInternal, loadPath, requireLocks, runtime, searchers, 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)
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.
|
addAutoload, addBuiltinLibrary, addLoadedFeature, addPath, autoload, autoloadFor, buildClassName, checkEmptyLoad, debugLogFound, debugLogFound, debugLogTry, featureAlreadyLoaded, findBuiltinLibrary, findFileForLoad, findLibraryWithClassloaders, findLibraryWithoutCWD, getClassPathResource, getFileName, getLoadedFeatures, getLoadPath, init, isCaseInsensitiveFS, isJarfileLibrary, isRequireable, load, loadPathLooksLikeJarURL, lockAndRequire, reflectedLoad, removeAutoLoadFor, removeBuiltinLibrary, removeInternalLoadedFeature, removeLoadedFeature, require, reraiseRaiseExceptions, resolveLoadName, smartLoad, tryLoadingLibraryOrScript, tryResourceAsIs, tryResourceFromCWD, tryResourceFromHome, tryResourceFromJarURL, tryResourceFromJarURLWithLoadPath, tryResourceFromLoadPath, tryResourceFromLoadPathOrURL
public static final java.lang.String OSGI_BUNDLE_CLASSPATH_SCHEME
public static RubyInstanceConfig.LoadServiceCreator OSGI_DEFAULT
public OSGiLoadService(Ruby runtime)
runtime
- protected LoadServiceResource findFileInClasspath(java.lang.String name)
findFileInClasspath
in class LoadService
name
- the file to find, this is a path nameprotected Library createLibrary(LoadService.SearchState state, LoadServiceResource resource)
createLibrary
in class LoadService
Copyright © 2002-2009 JRuby Team. All Rights Reserved.