public abstract class ReadOnlyAttributeHandler extends Object implements AttributeHandler
Constructor and Description |
---|
ReadOnlyAttributeHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdate(AttributeHandlerContext context)
This implementation always returns
false . |
AttributeUpdater |
setValue(AttributeHandlerContext context,
Object value)
This implementation always throws a
RuntimeException because
canUpdate() always returns false hence this
method should never be called. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canHandle, getValue
public final boolean canUpdate(AttributeHandlerContext context)
false
.canUpdate
in interface AttributeHandler
context
- The context when this handler is called.public final AttributeUpdater setValue(AttributeHandlerContext context, Object value)
RuntimeException
because
canUpdate()
always returns false
hence this
method should never be called.setValue
in interface AttributeHandler
context
- The context when this handler is called.value
- The value to set the attribute to.Copyright © 2023. All rights reserved.