public class LockingPolicyFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
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.
|
public static final java.lang.String COPYRIGHT
public static LockingPolicy getLockingPolicy(java.lang.String policyName) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
policyName
- The name 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.