|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.model.ModelObject
org.jomc.model.Instances
org.jomc.ri.model.RuntimeInstances
@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public class RuntimeInstances
Runtime Instances
.
Field Summary |
---|
Fields inherited from class org.jomc.model.Instances |
---|
instance |
Fields inherited from class org.jomc.model.ModelObject |
---|
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion |
Constructor Summary | |
---|---|
RuntimeInstances()
Creates a new RuntimeInstances instance. |
|
RuntimeInstances(Instances instances)
Creates a new RuntimeInstances instance by deeply copying a given Instances instance. |
Method Summary | |
---|---|
void |
clear()
Clears shared runtime state. |
void |
gc()
Handles shared runtime state. |
Instance |
getInstance(String identifier)
Gets an instance for a given identifier from the list of instances. |
Methods inherited from class org.jomc.model.Instances |
---|
clone, getInstance |
Methods inherited from class org.jomc.model.ModelObject |
---|
getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersion |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeInstances(Instances instances)
RuntimeInstances
instance by deeply copying a given Instances
instance.
instances
- The instance to copy.
NullPointerException
- if instances
is null
.@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public RuntimeInstances()
RuntimeInstances
instance.
Method Detail |
---|
public Instance getInstance(String identifier)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getInstance
in class Instances
identifier
- The identifier of the instance to return.
null
, if no such instance is found.
NullPointerException
- if identifier
is null
.Instances.getInstance()
,
Instance.getIdentifier()
,
clear()
public void gc()
RuntimeModelObject
gc
in interface RuntimeModelObject
public void clear()
RuntimeModelObject
clear
in interface RuntimeModelObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |