| java.lang.Object ch.ethz.jvmai.Provider
All known Subclasses: ch.ethz.prose.jvmai.jikesrvm.stub_weaver.JikesRVMProvider, ch.ethz.inf.iks.jvmai.jvmdi.DebuggerProvider, ch.ethz.prose.jvmai.jikesrvm.advice_weaver.JikesRVMProvider, ch.ethz.inf.iks.jvmai.jvmdi.HotSwapProvider,
Provider | abstract public class Provider (Code) | | Class Provider builds the connection between the
jvmai-system and the user-application. Every virtual
machine (better: every jvmai-implementation) implements
a provider. Method getProvider is used to
get an instace of a provider specified by a classname.
This provider connects to the jvmai-implementation and
tries to get references to the aspect- and
info-interface. Applications can then retrieve this
references by calling getAspectInterface()
and getInfoInterface() .
version: $Revision: 1.1.1.1 $ author: Stephan Markwalder |
Constructor Summary | |
protected | Provider() |
Method Summary | |
abstract public JVMAspectInterface | getAspectInterface() Returns the apect-interface of the jvmai-system
supported by this provider. | final public static Provider | getProvider(String classname) Gets an implementation of a provider specified by the
providers classname.
This method may fail for many different reasons.
First, the class may not be found. |
Provider | protected Provider()(Code) | | |
getAspectInterface | abstract public JVMAspectInterface getAspectInterface()(Code) | | Returns the apect-interface of the jvmai-system
supported by this provider.
|
getProvider | final public static Provider getProvider(String classname)(Code) | | Gets an implementation of a provider specified by the
providers classname.
This method may fail for many different reasons.
First, the class may not be found. If the class can
be found and linked without errors, an instance of
this provider is created. Depending on the kind of
jvmai-implementation, providers try to connect to
this implementation or the virtual machine itself.
If the specified provider (parameter
classname ) is not able to establish this
connection, it will throw a JVMAIRuntimeException.
Parameters: classname - Name of the provider-class(with package-name). An instance of a provider. exception: JVMAIRuntimeException - Use JVMAIRuntimeException.getMessage() to retrieve a description. |
|
|