|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.admin.server.ConfigRegistry.ObjectRecord
protected abstract class ConfigRegistry.ObjectRecord
Contains all necessary info for a configuration object registration.
| Field Summary | |
|---|---|
DObject |
object
|
| Constructor Summary | |
|---|---|
ConfigRegistry.ObjectRecord(DObject obj)
|
|
| Method Summary | |
|---|---|
void |
attributeChanged(AttributeChangedEvent event)
Called when an attribute changed event has been dispatched on an object. |
protected Object |
deserialize(String value)
Deserializes the object contained in the specified string. |
void |
elementUpdated(ElementUpdatedEvent event)
Called when an element updated event has been dispatched on an object. |
void |
entryAdded(EntryAddedEvent<DSet.Entry> event)
Called when an entry added event has been dispatched on an object. |
void |
entryRemoved(EntryRemovedEvent<DSet.Entry> event)
Called when an entry removed event has been dispatched on an object. |
void |
entryUpdated(EntryUpdatedEvent<DSet.Entry> event)
Called when an entry updated event has been dispatched on an object. |
protected abstract boolean |
getValue(String field,
boolean defval)
|
protected abstract byte |
getValue(String field,
byte defval)
|
protected abstract float |
getValue(String field,
float defval)
|
protected abstract float[] |
getValue(String field,
float[] defval)
|
protected abstract int |
getValue(String field,
int defval)
|
protected abstract int[] |
getValue(String field,
int[] defval)
|
protected abstract long |
getValue(String field,
long defval)
|
protected abstract long[] |
getValue(String field,
long[] defval)
|
protected abstract short |
getValue(String field,
short defval)
|
protected abstract String |
getValue(String field,
String defval)
|
protected abstract String[] |
getValue(String field,
String[] defval)
|
void |
init()
|
protected void |
initField(Field field)
Initializes a single field of a config distributed object from its corresponding value in the associated config repository. |
protected String |
nameToKey(String attributeName)
Converts a config object field name (someConfigMember) to a configuration key (some_config_member). |
protected void |
serialize(String name,
String key,
Object value)
Save the specified object as serialized data associated with the specified key. |
protected void |
serializeAttribute(String attributeName)
Get the specified attribute from the configuration object, and serialize it. |
protected abstract void |
setValue(String field,
boolean value)
|
protected abstract void |
setValue(String field,
byte value)
|
protected abstract void |
setValue(String field,
float value)
|
protected abstract void |
setValue(String field,
float[] value)
|
protected abstract void |
setValue(String field,
int value)
|
protected abstract void |
setValue(String field,
int[] value)
|
protected abstract void |
setValue(String field,
long value)
|
protected abstract void |
setValue(String field,
long[] value)
|
protected abstract void |
setValue(String field,
short value)
|
protected abstract void |
setValue(String field,
String value)
|
protected abstract void |
setValue(String field,
String[] value)
|
protected void |
updateValue(String name,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public DObject object
| Constructor Detail |
|---|
public ConfigRegistry.ObjectRecord(DObject obj)
| Method Detail |
|---|
public void init()
public void entryAdded(EntryAddedEvent<DSet.Entry> event)
SetListener
entryAdded in interface SetListener<DSet.Entry>event - The event that was dispatched on the object.public void entryUpdated(EntryUpdatedEvent<DSet.Entry> event)
SetListener
entryUpdated in interface SetListener<DSet.Entry>event - The event that was dispatched on the object.public void entryRemoved(EntryRemovedEvent<DSet.Entry> event)
SetListener
entryRemoved in interface SetListener<DSet.Entry>event - The event that was dispatched on the object.public void elementUpdated(ElementUpdatedEvent event)
ElementUpdateListener
elementUpdated in interface ElementUpdateListenerevent - The event that was dispatched on the object.public void attributeChanged(AttributeChangedEvent event)
AttributeChangeListener
attributeChanged in interface AttributeChangeListenerevent - The event that was dispatched on the object.
protected void updateValue(String name,
Object value)
protected void initField(Field field)
protected void serializeAttribute(String attributeName)
protected void serialize(String name,
String key,
Object value)
protected Object deserialize(String value)
throws Exception
Exceptionprotected String nameToKey(String attributeName)
protected abstract boolean getValue(String field,
boolean defval)
protected abstract byte getValue(String field,
byte defval)
protected abstract short getValue(String field,
short defval)
protected abstract int getValue(String field,
int defval)
protected abstract long getValue(String field,
long defval)
protected abstract float getValue(String field,
float defval)
protected abstract String getValue(String field,
String defval)
protected abstract int[] getValue(String field,
int[] defval)
protected abstract float[] getValue(String field,
float[] defval)
protected abstract long[] getValue(String field,
long[] defval)
protected abstract String[] getValue(String field,
String[] defval)
protected abstract void setValue(String field,
boolean value)
protected abstract void setValue(String field,
byte value)
protected abstract void setValue(String field,
short value)
protected abstract void setValue(String field,
int value)
protected abstract void setValue(String field,
long value)
protected abstract void setValue(String field,
float value)
protected abstract void setValue(String field,
String value)
protected abstract void setValue(String field,
int[] value)
protected abstract void setValue(String field,
float[] value)
protected abstract void setValue(String field,
long[] value)
protected abstract void setValue(String field,
String[] value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||