com.ibm.commerce.context.content.locking

Class LockingPolicyFactory

  • java.lang.Object
    • com.ibm.commerce.context.content.locking.LockingPolicyFactory


  • 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

      Fields 
      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

      • COPYRIGHT

        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,
                                                     java.lang.IllegalAccessException,
                                                     java.lang.ClassNotFoundException
        This method returns the locking policy implementation for the specified class name.
        Parameters:
        policyName - The name of the locking policy.
        Returns:
        The implementation object of the locking policy.
        Throws:
        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.