|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectmanagers.ResourcesManager
public class ResourcesManager
Responsible for persistance.
| Method Summary | |
|---|---|
Object |
getObject(Node node)
Gets an object from the node specified as the argument. |
ByteArray |
getValue(Node node)
Gets a series of bytes from the node specified as the argument. |
void |
remove(Node node)
Removes the content of the node specified as the argument. |
void |
removePackage(Node node)
Removes the whole package from the MIDlet environment. |
void |
setObject(Node node,
Object object)
Binds a given object to the node specified as the argument. |
void |
setValue(Node node,
ByteArray data)
Binds a given series of bytes to the node specified as the argument. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Object getObject(Node node)
This method can be used only for nodes from 'session' location.
node - node to read the object from
<blue:call manager="ResourcesManager" method="getObject"
toVariable="variableName">
<blue:argument type="node" location="session"
name="com/emarson/bluelemon/anObject"/>
</blue:call>
However, in most cases it is more convenient to use the equivalent
<get
node='...' location='...'> syntax:
<blue:get node="com/emarson/bluelemon/anObject"
location="session" toVariable="variableName"/>
public ByteArray getValue(Node node)
node - node to read the bytes from
<blue:call manager="ResourcesManager" method="getValue"
toVariable="variableName">
<blue:argument type="node" location="permanent"
name="com/emarson/bluelemon/example"/>
</blue:call>
However, in most cases it is more convenient to use the equivalent
<get
node='...' location='...'> syntax:
<blue:get node="com/emarson/bluelemon/example"
location="permanent" toVariable="variableName"/>
public void remove(Node node)
This method can be used only for nodes from 'permanent' and 'session' locations.
node - node to remove the content from
<blue:call manager="ResourcesManager" method="remove">
<blue:argument type="node" location="session"
name="com/emarson/bluelemon/example"/>
</blue:call>
public void removePackage(Node node)
node - node identifying the package to remove
<blue:call manager="ResourcesManager" method="removePackage">
<blue:argument type="byteArr" contextKey="packageDigest"/>
</blue:call>
public void setObject(Node node,
Object object)
This method can be used only for nodes from 'session' location.
node - node to store the objectdata - object to store
<blue:call manager="ResourcesManager" method="setValue">
<blue:argument type="node" location="session"
name="com/emarson/bluelemon/anObject"/>
<blue:argument type="variable" name="form"/>
</blue:call>
However, in most cases it is more convenient to use the equivalent
<set
node='...' location='...'> syntax:
<blue:set node="com/emarson/bluelemon/anObject"
location="session">
<blue:argument type="variable" name="form"/>
</blue:set>
public void setValue(Node node,
ByteArray data)
node - node to write the bytes intodata - bytes to write
<blue:call manager="ResourcesManager" method="setValue">
<blue:argument type="node" location="session"
name="com/emarson/bluelemon/example"/>
<blue:argument type="String" value="some text"/>
</blue:call>
However, in most cases it is more convenient to use the equivalent
<set
node='...' location='...'> syntax:
<blue:set node="com/emarson/bluelemon/example"
location="session">
<blue:argument type="String" value="some text"/>
</blue:set>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||