Class Lock

java.lang.Object
org.apache.commons.configuration.Lock

public class Lock extends Object

A simple class acting as lock.

Instances of this class are used by some configuration classes to synchronize themselves.

Since:
1.7
Version:
$Id: Lock.java 1301995 2012-03-17 20:24:16Z sebb $
Author:
Commons Configuration team
  • Constructor Details

    • Lock

      public Lock(String name)
      Creates a new instance of Lock with the specified name.
      Parameters:
      name - the name of this lock
  • Method Details

    • getName

      public String getName()
      Returns the name of this lock.
      Returns:
      the name of this lock
    • toString

      public String toString()
      Returns a string representation of this object. This implementation returns a string which contains the lock name and the instance ID.
      Overrides:
      toString in class Object
      Returns:
      a string for this object