com.arsdigita.util
Class LockableImpl

java.lang.Object
  extended bycom.arsdigita.util.LockableImpl
All Implemented Interfaces:
Lockable
Direct Known Subclasses:
AbstractDataQueryBuilder, AbstractListModelBuilder, AbstractTableModelBuilder, BaseQueryEngine, DataQueryListModelBuilder, DataTable.DataBuilderAdapter, DefaultTableCellRenderer, LockableImpl, ProcessListenerListModelBuilder, PropertyEditor.DefaultModelBuilder

public class LockableImpl
extends Object
implements Lockable

A generic implementation of the Lockable interface.

Version:
$Id: //core-platform/dev/src/com/arsdigita/util/LockableImpl.java#7 $
Author:
Michael Bryzek
See Also:
Lockable

Field Summary
 
Fields inherited from interface com.arsdigita.util.Lockable
versionId
 
Constructor Summary
LockableImpl()
           
 
Method Summary
 boolean isLocked()
          Return whether an object is locked and thus immutable, or can still be modified.
 void lock()
          Lock an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockableImpl

public LockableImpl()
Method Detail

lock

public void lock()
Lock an object. Locked objetcs are to be considered immutable. Any attempt to modify them, e.g., through a setXXX method should lead to an exception.

Specified by:
lock in interface Lockable
See Also:
Lockable.lock()

isLocked

public boolean isLocked()
Return whether an object is locked and thus immutable, or can still be modified.

Specified by:
isLocked in interface Lockable
See Also:
Lockable.isLocked()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC