|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.config.ManagedConfig
public abstract class ManagedConfig
Represents a configuration managed by the ConfigManager.
| Constructor Summary | |
|---|---|
ManagedConfig()
|
|
| Method Summary | |
|---|---|
void |
addListener(ConfigUpdateListener listener)
Adds a listener to notify on updates. |
void |
configUpdated(ConfigEvent<ManagedConfig> event)
Called when a configuration has been updated. |
ConfigManager |
getConfigManager()
Returns a reference to the config manager to use when resolving references within this config. |
ManagedConfig |
getInstance(ArgumentMap args)
Returns the derived instance with the supplied arguments. |
ManagedConfig |
getInstance(Scope scope)
Returns the derived instance in the specified scope. |
ManagedConfig |
getInstance(Scope scope,
ArgumentMap args)
Returns the derived instance in the specified scope with the supplied arguments. |
ManagedConfig |
getInstance(Scope scope,
String firstKey,
Object firstValue,
Object... otherArgs)
Returns the derived instance in the specified scope with the supplied arguments. |
ManagedConfig |
getInstance(String firstKey,
Object firstValue,
Object... otherArgs)
Returns the derived instance with the supplied arguments. |
String |
getName()
Returns the name of this configuration. |
ConfigReference<? extends ManagedConfig> |
getReference()
Returns a reference to this configuration based on its name and arguments. |
void |
init(ConfigManager cfgmgr)
Initializes this config with a reference to the config manager that it should use to resolve references. |
void |
removeListener(ConfigUpdateListener listener)
Removes a listener from the list. |
void |
resourceModified(String path,
long lastModified)
|
void |
setName(String name)
Sets the name of this configuration. |
void |
updateFromSource(EditorContext ctx,
boolean force)
Updates this configuration from its external source, if any. |
void |
validateOuters(String where)
Validates the outer object references in this config. |
boolean |
validateReferences(String where,
PrintStream out)
Validates the references in this config. |
void |
wasUpdated()
Notes that this configuration has been updated. |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedConfig()
| Method Detail |
|---|
public void setName(String name)
public String getName()
public ConfigReference<? extends ManagedConfig> getReference()
public ConfigManager getConfigManager()
public ManagedConfig getInstance(String firstKey,
Object firstValue,
Object... otherArgs)
public ManagedConfig getInstance(Scope scope,
String firstKey,
Object firstValue,
Object... otherArgs)
public ManagedConfig getInstance(Scope scope)
public ManagedConfig getInstance(ArgumentMap args)
public ManagedConfig getInstance(Scope scope,
ArgumentMap args)
public void addListener(ConfigUpdateListener listener)
public void removeListener(ConfigUpdateListener listener)
public void init(ConfigManager cfgmgr)
public void updateFromSource(EditorContext ctx,
boolean force)
force - if true, reload the source data even if it has already been loaded.public void wasUpdated()
public boolean validateReferences(String where,
PrintStream out)
public void validateOuters(String where)
public void configUpdated(ConfigEvent<ManagedConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<ManagedConfig>
public void resourceModified(String path,
long lastModified)
resourceModified in interface com.threerings.resource.ResourceManager.ModificationObserver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||