01: package org.drools.objenesis.strategy;
02:
03: /**
04: * Base {@link InstantiatorStrategy} class basically containing helpful constant to sort out JVMs.
05: *
06: * @author Henri Tremblay
07: */
08: public abstract class BaseInstantiatorStrategy implements
09: InstantiatorStrategy {
10:
11: /** JVM_NAME prefix for JRockit */
12: protected static final String JROCKIT = "BEA";
13:
14: /** JVM_NAME prefix for GCJ */
15: protected static final String GNU = "GNU libgcj";
16:
17: /** JVM_NAME prefix for Sun Java HotSpot */
18: protected static final String SUN = "Java HotSpot";
19:
20: /** JVM version */
21: protected static final String VM_VERSION = System
22: .getProperty("java.runtime.version");
23:
24: /** JVM version */
25: protected static final String VM_INFO = System
26: .getProperty("java.vm.info");
27:
28: /** Vendor version */
29: protected static final String VENDOR_VERSION = System
30: .getProperty("java.vm.version");
31:
32: /** Vendor name */
33: protected static final String VENDOR = System
34: .getProperty("java.vm.vendor");
35:
36: /** JVM name */
37: protected static final String JVM_NAME = System
38: .getProperty("java.vm.name");
39: }
|