All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----uhr.core.dk.ParamStore
DK is stored as XML and parsed into Flexitrons. Note we don't use the URL class to allows use in Java versions without is, such as embedded systems. The implementation, if it knows it will always have URL available, is welcome to use it.
DK URLs of a simple nature are used. The format is:
jcresource://class name/file name. An example
using this format is:
jcresource://jcon.systems.AwardSystem/edit/docs/EditEmail.dkThe Java class name is used as a host via
Class.forName(class name) and then
Class.getResourceAsStream(file name). The
file name is relative to the class
location. For writes we determine where the class is on disk and
then open and write to the file name.
We recreate the class name object from the class name, assuming this is compatable with the classloaders involved. If this is a problem, then we will have to modify this to support Class markers instead of Strings for the marker name.
DL URLs may also be relative. This allows container DK to be reused anywhere in a system and removes tight coupling. While this is not implemented here, we shall describe it here and move the doc to where it's eventually done.
The simplest url is none. For this case the part name, tree path and first upward marker define its url. This by far the most common case. The DK marker is defined as a class name in a cell, allowing the cell's branch to use the marker easily. This is a container DK XML entity named "dkmarker".
To refer to the dk marker but use a non-default dk file, the url may be "file name" with no protocol or marker. This is translated as using the upward marker, upward path, plus the file name. For example this allows two parts in a cell to use the same DK by merely use the same file name.
Note - Other and multiple protocols and storage mechanisms are possible. To mix protocols in container dk, different classes would be used. They would be in a registry for different protocol handlers, much like Java's handles URLs. The registry would be the ParamStore message service, and route different protocols to their handlers.
readIntoFlexitron(...).
public ParamStore()
public ServiceHostAide getServiceHostAide()
Type: UF_Flexitron_String ServiceID: uhr.core.dk.ReadDKIntoFlexitron
public Object get(String dk_url,
String type)
readIntoFlexitron(...).
public Object readIntoObject(String url,
String type)
Currrently the only type supported is uhr.core.tron.Flexitron.
public String readIntoText(String url)
public void writeFromText(String url,
String text)
public String remove(String url)
All Packages Class Hierarchy This Package Previous Next Index