com.sibvisions.rad.server.config
Class Zone

java.lang.Object
  extended by com.sibvisions.rad.server.config.UpToDateConfigFile
      extended by com.sibvisions.rad.server.config.Zone
Direct Known Subclasses:
ApplicationZone, ServerZone

public abstract class Zone
extends UpToDateConfigFile

A Zone is a special area in the server-side code area. A zone always has a configuration file.


Method Summary
 IConfiguration getConfig()
          Gets this Zone as wrapped IConfiguration.
 File getDirectory()
          Returns the zone directory.
protected  void setUpdateEnabled(boolean pEnabled)
          Sets the up-to-date option of the configuration.
protected  void update()
          Loads the configuration from the filesystem.
 
Methods inherited from class com.sibvisions.rad.server.config.UpToDateConfigFile
getContent, getFile, getNodes, getProperties, getProperty, getProperty, isValid, setContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

update

protected void update()
               throws Exception
Loads the configuration from the filesystem.

Overrides:
update in class UpToDateConfigFile
Throws:
Exception - if it is not possible to read the configuration from the filesystem or the xml content is not valid

setUpdateEnabled

protected void setUpdateEnabled(boolean pEnabled)
Sets the up-to-date option of the configuration.

Parameters:
pEnabled - true doesn't update the configuration when next accessing; false always keeps the configuration up-to-date

getDirectory

public File getDirectory()
Returns the zone directory.

Returns:
the zone directory

getConfig

public IConfiguration getConfig()
Gets this Zone as wrapped IConfiguration.

Returns:
the zone with IConfiguration access


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.