com.gridsystems.config.modules.tomcat
Class TomcatConfigurator

java.lang.Object
  extended by com.gridsystems.config.Configurator
      extended by com.gridsystems.config.modules.tomcat.TomcatConfigurator

public final class TomcatConfigurator
extends Configurator

Tomcat Configurator implementation.

Version:
1.0
Author:
Rodrigo Ruiz

Field Summary
 
Fields inherited from class com.gridsystems.config.Configurator
MODE_CONSOLE, MODE_SILENT, MODE_SWING
 
Method Summary
 void apply()
          Saves the view values into the model, and applies it.
protected  ConfiguratorModel createModel()
          Creates a new model instance.
protected  ConsoleConfiguratorView getConsoleView()
          Gets a view for Configurator.MODE_CONSOLE.
static TomcatConfigurator getInstance()
          Gets a singleton instance of this class.
protected  SwingConfiguratorView getSwingView()
          Gets a view for Configurator.MODE_SWING.
 
Methods inherited from class com.gridsystems.config.Configurator
discard, getBundle, getContextDir, getModel, getName, getPath, getUsername, getView, getViewMode, hasView, isClosing, setClosing, setErrorListener, setModel, setUsername, setViewMode, updateError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TomcatConfigurator getInstance()
Gets a singleton instance of this class.

Returns:
a singleton instance

getSwingView

protected SwingConfiguratorView getSwingView()
Gets a view for Configurator.MODE_SWING.

Specified by:
getSwingView in class Configurator
Returns:
The view

getConsoleView

protected ConsoleConfiguratorView getConsoleView()
Gets a view for Configurator.MODE_CONSOLE.

Specified by:
getConsoleView in class Configurator
Returns:
The view

createModel

protected ConfiguratorModel createModel()
Creates a new model instance.

Specified by:
createModel in class Configurator
Returns:
A newly created ConfiguratorModel instance

apply

public void apply()
           throws java.lang.Exception
Saves the view values into the model, and applies it.

Overrides:
apply in class Configurator
Throws:
java.lang.Exception - In case of error during model apply


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.