com.caucho.loader.osgi
Class OsgiLoader

java.lang.Object
  extended by com.caucho.loader.Loader
      extended by com.caucho.loader.osgi.OsgiLoader
All Implemented Interfaces:
EnvironmentListener

public class OsgiLoader
extends Loader
implements EnvironmentListener

Loads resources.


Constructor Summary
OsgiLoader()
           
 
Method Summary
 void addInstall(Path path)
           
 void addPath(Path path)
           
protected  void buildClassPath(java.util.ArrayList<java.lang.String> list)
          Adds the classpath of this loader.
 void environmentBind(EnvironmentClassLoader loader)
          Handles the case where the environment is binding injection targets
 void environmentConfigure(EnvironmentClassLoader loader)
          Handles the case where the environment is configuring and registering beans
 void environmentStart(EnvironmentClassLoader loader)
          Handles the case where the environment is starting (after init).
 void environmentStop(EnvironmentClassLoader loader)
          Handles the case where the environment is stopping (after init).
protected  java.lang.Class loadClass(java.lang.String name)
          Loads the class directly, e.g.
 
Methods inherited from class com.caucho.loader.Loader
buildClassPath, buildSourcePath, buildSourcePath, destroy, getClassEntry, getCodeSource, getLoader, getPath, getResource, getResourceAsStream, getResources, setLoader, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiLoader

public OsgiLoader()
Method Detail

addInstall

public void addInstall(Path path)

addPath

public void addPath(Path path)

buildClassPath

protected void buildClassPath(java.util.ArrayList<java.lang.String> list)
Adds the classpath of this loader.

Overrides:
buildClassPath in class Loader

loadClass

protected java.lang.Class loadClass(java.lang.String name)
Description copied from class: Loader
Loads the class directly, e.g. from OSGi

Overrides:
loadClass in class Loader

environmentConfigure

public void environmentConfigure(EnvironmentClassLoader loader)
                          throws ConfigException
Handles the case where the environment is configuring and registering beans

Specified by:
environmentConfigure in interface EnvironmentListener
Throws:
ConfigException

environmentBind

public void environmentBind(EnvironmentClassLoader loader)
                     throws ConfigException
Handles the case where the environment is binding injection targets

Specified by:
environmentBind in interface EnvironmentListener
Throws:
ConfigException

environmentStart

public void environmentStart(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init).

Specified by:
environmentStart in interface EnvironmentListener

environmentStop

public void environmentStop(EnvironmentClassLoader loader)
Handles the case where the environment is stopping (after init).

Specified by:
environmentStop in interface EnvironmentListener