|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncclient.spdm.DeviceManager
com.funambol.syncclient.spdm.SimpleDeviceManager
public class SimpleDeviceManager
This is a simple implementation of DeviceManager that uses the file
system to store and read nodes.
The root of the configuration tree is specified with the system property
spdm.dir.config
; if null, the current directory is taken.
The tree structure is orgnaized in contexts, represented by directories, and leaf nodes, represented by properties files. Leaf nodes contain the configuration values.
Field Summary | |
---|---|
static java.lang.String |
PROP_DM_DIR_BASE
The system property name for the base directory |
Constructor Summary | |
---|---|
SimpleDeviceManager()
Creates a new SimpleDeviceManager |
Method Summary | |
---|---|
Device |
getDevice()
Returns a Device object representing the device managed by this DeviceManager. |
static DeviceManager |
getDeviceManager()
Factory for SimpleDeviceManager. |
ManagementNode |
getManagementTree()
The same as getManagementTree("") |
ManagementNode |
getManagementTree(java.lang.String context)
Return the management tree given its context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_DM_DIR_BASE
Constructor Detail |
---|
public SimpleDeviceManager()
Method Detail |
---|
public static DeviceManager getDeviceManager()
public ManagementNode getManagementTree(java.lang.String context)
getManagementTree
in class DeviceManager
context
- the node context
public ManagementNode getManagementTree()
getManagementTree
in class DeviceManager
public Device getDevice()
DeviceManager
getDevice
in class DeviceManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |