Class Lockable
java.lang.Object
org.apache.tapestry5.internal.plastic.Lockable
- Direct Known Subclasses:
InstructionBuilderImpl
,PlasticClassImpl
,PlasticManager.PlasticManagerBuilder
,SwitchBlockImpl
,TryCatchBlockImpl
An object that can be locked, at which point most of its functionality is disabled. This conforms to general
builder approach used throughout Plastic where objects have an active construction phase, but are then locked
(to encourage user code to discard them after they are no longer of any use).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Lockable
public Lockable()
-
-
Method Details
-
check
Checks to see if the object has been locked.- Throws:
IllegalStateException
- iflock()
has been invoked.
-
lock
-