org.apache.geronimo.system.configuration
Class FileConfigurationList

java.lang.Object
  extended byorg.apache.geronimo.system.configuration.FileConfigurationList
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.kernel.config.PersistentConfigurationList

public class FileConfigurationList
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.kernel.config.PersistentConfigurationList

GBean that saves a list of configurations, for example to allow a server to restart automatically.

Version:
$Revision: 1.4 $ $Date: 2004/07/12 06:07:52 $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.kernel.config.PersistentConfigurationList
OBJECT_NAME
 
Constructor Summary
FileConfigurationList(org.apache.geronimo.kernel.Kernel kernel, ServerInfo serverInfo, String configDir)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 List restore()
           
 void save()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

FileConfigurationList

public FileConfigurationList(org.apache.geronimo.kernel.Kernel kernel,
                             ServerInfo serverInfo,
                             String configDir)
Method Detail

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

save

public void save()
          throws IOException
Specified by:
save in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
Throws:
IOException

restore

public List restore()
             throws IOException
Specified by:
restore in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
Throws:
IOException

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.