|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.attributes.DefaultSealable
public class DefaultSealable
Implementation of the Sealable interface. Subclasses should call
checkSealed() before setting any bean properties.
| Field Summary | |
|---|---|
private boolean |
sealed
Boolean flag indicating whether the seal() method
has been called. |
| Constructor Summary | |
|---|---|
DefaultSealable()
Default ctor. |
|
| Method Summary | |
|---|---|
protected void |
checkSealed()
Checks if the seal() method has been called and throws a
IllegalStateException if it has. |
void |
seal()
Seals this attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private volatile boolean sealed
seal() method
has been called.
| Constructor Detail |
|---|
public DefaultSealable()
| Method Detail |
|---|
protected void checkSealed()
throws java.lang.IllegalStateException
seal() method has been called and throws a
IllegalStateException if it has.
java.lang.IllegalStateException - if this attribute has been sealed.public void seal()
checkSealed() method will result in an
IllegalStateException being thrown.
seal in interface Sealable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||