java.lang.Object
org.easymock.internal.ClassInstantiatorFactory
Factory returning a
IClassInstantiatorfor the current JVM- Author:
- Henri Tremblay
-
Method Summary
Modifier and TypeMethodDescriptionstatic IClassInstantiatorReturns a class instantiator suitable for the current JVMstatic StringgetJVM()Returns the current JVM as specified in the System propertiesstatic StringReturns the current JVM specification version (1.5, 1.4, 1.3)static booleanstatic voidSet back the default instantiatorstatic voidAllow to override the default instantiator.
-
Method Details
-
getJVM
Returns the current JVM as specified in the System properties- Returns:
- current JVM
-
getJVMSpecificationVersion
Returns the current JVM specification version (1.5, 1.4, 1.3)- Returns:
- current JVM specification version
-
is1_3Specifications
public static boolean is1_3Specifications() -
getInstantiator
Returns a class instantiator suitable for the current JVM- Returns:
- a class instantiator usable on the current JVM
-
setInstantiator
Allow to override the default instantiator. Useful when the default one isn't able to create mocks in a given environment.- Parameters:
i- New instantiator
-
setDefaultInstantiator
public static void setDefaultInstantiator()Set back the default instantiator
-