public class Shared
extends Object
Global class that provides SharedClassHelperFactory, SharedDataHelperFactory and sharing status.
- See Also:
-
-
Constructor Summary
Constructors
-
Method Summary
If sharing is enabled, returns a SharedClassHelperFactory, otherwise returns null.
If sharing is enabled, returns a SharedDataHelperFactory, otherwise returns null.
static boolean
Checks if sharing is enabled for this JVM.
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Shared
Deprecated.
Constructs a new instance of this class.
-
Method Details
-
isSharingEnabled
public static boolean isSharingEnabled()
Checks if sharing is enabled for this JVM.
- Returns:
- true if using -Xshareclasses on the command-line, false otherwise
-
getSharedClassHelperFactory
If sharing is enabled, returns a SharedClassHelperFactory, otherwise returns null.
- Returns:
- SharedClassHelperFactory
-
getSharedDataHelperFactory
If sharing is enabled, returns a SharedDataHelperFactory, otherwise returns null.
- Returns:
- SharedDataHelperFactory