sync4j.syncclient.spdm
Class DeviceImpl

java.lang.Object
  extended bysync4j.syncclient.spdm.DeviceImpl
All Implemented Interfaces:
Device

public class DeviceImpl
extends java.lang.Object
implements Device

This is a simple implementation of the Device interface. It is still quite generic and will be replaced in the future with more interesting implementations. For now it is a good trade-off between quick and dirty.


Field Summary
static java.lang.String CONTEXT_DEVICE
          The management tree where the device information is stored
static java.lang.String PROP_BASE_DIR
          The base directory configuration property
 
Constructor Summary
DeviceImpl(DeviceManager dm)
           
 
Method Summary
 java.lang.String getBaseDirectory()
          Returns the base directory.
 void setBaseDirectory(java.lang.String baseDir)
          Sets the device base directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_DEVICE

public static final java.lang.String CONTEXT_DEVICE
The management tree where the device information is stored

See Also:
Constant Field Values

PROP_BASE_DIR

public static final java.lang.String PROP_BASE_DIR
The base directory configuration property

See Also:
Constant Field Values
Constructor Detail

DeviceImpl

public DeviceImpl(DeviceManager dm)
Method Detail

getBaseDirectory

public java.lang.String getBaseDirectory()
                                  throws DMException
Returns the base directory.

Specified by:
getBaseDirectory in interface Device
Returns:
the base directory as a string.
Throws:
DMException - if there is an error in determining the current working directory.
See Also:
Device

setBaseDirectory

public void setBaseDirectory(java.lang.String baseDir)
                      throws DMException
Sets the device base directory

Specified by:
setBaseDirectory in interface Device
Parameters:
baseDir - the new base directory.
Throws:
DMException - in case of error setting the base direcotry


Copyright © 2003-2005 Sync4j.