01: package ch.ethz.prose.jvmai.jikesrvm.stub_weaver;
02:
03: // used packages/classes
04: import com.ibm.JikesRVM.VM_JVMAI;
05: import ch.ethz.jvmai.Provider;
06: import ch.ethz.jvmai.JVMAspectInterface;
07:
08: /**
09: * Class JikesRVMProvider
10: *
11: * @version $Revision: 1.1 $
12: * @author Stephan Markwalder
13: */
14: public class JikesRVMProvider extends Provider {
15:
16: public JikesRVMProvider() {
17: try {
18: VM_JVMAI.getInstance();
19: } catch (Throwable t) {
20: System.err.println("");
21: System.err
22: .println("**************************************************");
23: System.err
24: .println("* *");
25: System.err
26: .println("* JikesRVMProvider doesn't work with this VM *");
27: System.err
28: .println("* *");
29: System.err
30: .println("**************************************************");
31: System.err.println(t.toString());
32: t.printStackTrace();
33: System.err
34: .println("**************************************************");
35: System.err.println("");
36: throw new RuntimeException(
37: "JikesRVMProvider doesn't work with this VM");
38: }
39: }
40:
41: public JVMAspectInterface getAspectInterface() {
42: return (JVMAspectInterface) VM_JVMAI.getInstance();
43: }
44: }
|