org.moremotion.config
Class ConfigManager

java.lang.Object
  extended by org.moremotion.config.ConfigManager
All Implemented Interfaces:
java.lang.Runnable

public class ConfigManager
extends java.lang.Object
implements java.lang.Runnable

ConfigManager detects the changes in the configuration files under "WEB-INF/MM-INF/config" directory and loads the first level elements in the file as ConfigUnit objects and lets the ConfigCache store them.

Version:
$Id: ConfigManager.java 115 2008-04-08 11:56:01Z erkan $

Constructor Summary
ConfigManager(java.io.File root)
          Creates a new instance of ConfigManager
 
Method Summary
 void finalize()
           
static Config getConfig(java.lang.String type, java.lang.String name)
           
static Config getConfig(java.lang.String type, java.lang.String name, java.lang.String originPage)
           
static java.util.List getFileListing(java.io.File startDir)
           
 void run()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigManager

public ConfigManager(java.io.File root)
Creates a new instance of ConfigManager

Method Detail

getConfig

public static Config getConfig(java.lang.String type,
                               java.lang.String name)
                        throws ConfigurationException
Throws:
ConfigurationException

getConfig

public static Config getConfig(java.lang.String type,
                               java.lang.String name,
                               java.lang.String originPage)
                        throws ConfigurationException
Throws:
ConfigurationException

start

public void start()

run

public void run()
Specified by:
run in interface java.lang.Runnable

getFileListing

public static java.util.List getFileListing(java.io.File startDir)

stop

public void stop()

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object


Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.