Class LockingPolicyFactory

  • java.lang.Object

  • public class LockingPolicyFactory
    extends java.lang.Object
    This class defines a locking factory to return the policy implementation based on the class name. The locking policy does not contain state information about the current content context. For this reason, this factory is used to ensure only one instance of the locking policy is created instead of having multiple copies of the same object.
    • Field Summary

      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static LockingPolicy getLockingPolicy(java.lang.String policyName)
      This method returns the locking policy implementation for the specified class name.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • getLockingPolicy

        public static LockingPolicy getLockingPolicy(java.lang.String policyName)
                                              throws java.lang.InstantiationException,
        This method returns the locking policy implementation for the specified class name.
        policyName - The name of the locking policy.
        The implementation object of the locking policy.
        java.lang.ClassNotFoundException - The locking policy class is not found.
        java.lang.IllegalAccessException - Thrown when there is illegal access to the locking policy class.
        java.lang.InstantiationException - Thrown when the locking policy cannot be instantiated.