Class Shared

java.lang.Object
com.ibm.oti.shared.Shared

public class Shared extends Object
Global class that provides SharedClassHelperFactory, SharedDataHelperFactory and sharing status.
See Also:
  • Constructor Details

    • Shared

      @Deprecated public 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

      public static SharedClassHelperFactory getSharedClassHelperFactory()
      If sharing is enabled, returns a SharedClassHelperFactory, otherwise returns null.
      Returns:
      SharedClassHelperFactory
    • getSharedDataHelperFactory

      public static SharedDataHelperFactory getSharedDataHelperFactory()
      If sharing is enabled, returns a SharedDataHelperFactory, otherwise returns null.
      Returns:
      SharedDataHelperFactory