org.jruby.embed.osgi.internal
Class OSGiLoadService

java.lang.Object
  extended by org.jruby.runtime.load.LoadService
      extended by org.jruby.embed.osgi.internal.OSGiLoadService

public class OSGiLoadService
extends LoadService

Author:
hmalphettes Load scripts and java classes directly from the OSGi bundles. bundle:/symbolic.name/

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.runtime.load.LoadService
LoadService.AlreadyLoaded, LoadService.BailoutSearcher, LoadService.ClassLoaderSearcher, LoadService.ExtensionSearcher, LoadService.LoadSearcher, LoadService.NormalSearcher, LoadService.ScriptClassSearcher, LoadService.SearchState, LoadService.SourceBailoutSearcher, LoadService.SuffixType
 
Field Summary
static java.lang.String OSGI_BUNDLE_CLASSPATH_SCHEME
           
static RubyInstanceConfig.LoadServiceCreator OSGI_DEFAULT
           
 
Fields inherited from class org.jruby.runtime.load.LoadService
autoloadMap, builtinLibraries, caseInsensitiveFS, extensionPattern, jarFiles, loadedFeatures, loadedFeaturesInternal, loadPath, requireLocks, runtime, searchers, sourcePattern
 
Constructor Summary
OSGiLoadService(Ruby runtime)
          Default constructor Optional constructor (why?)
 
Method Summary
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.
 
Methods inherited from class org.jruby.runtime.load.LoadService
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OSGI_BUNDLE_CLASSPATH_SCHEME

public static final java.lang.String OSGI_BUNDLE_CLASSPATH_SCHEME
See Also:
Constant Field Values

OSGI_DEFAULT

public static RubyInstanceConfig.LoadServiceCreator OSGI_DEFAULT
Constructor Detail

OSGiLoadService

public OSGiLoadService(Ruby runtime)
Default constructor Optional constructor (why?)

Parameters:
runtime -
Method Detail

findFileInClasspath

protected LoadServiceResource findFileInClasspath(java.lang.String name)
Support for 'bundle:/' to look for libraries in osgi bundles or classes or ruby files.

Overrides:
findFileInClasspath in class LoadService
Parameters:
name - the file to find, this is a path name
Returns:
the correct file

createLibrary

protected Library createLibrary(LoadService.SearchState state,
                                LoadServiceResource resource)
Support for 'bundle:/' to look for libraries in osgi bundles.

Overrides:
createLibrary in class LoadService


Copyright © 2002-2009 JRuby Team. All Rights Reserved.