de.matthias_burbach.mosaique.core
Class Mosaique

java.lang.Object
  extended byde.matthias_burbach.mosaique.core.Mosaique

public class Mosaique
extends java.lang.Object

Is the main class of the core application.

Is **NOT** used when running Mosaique as Eclipse plug-in!

Author:
Matthias Burbach

Constructor Summary
Mosaique(Log log)
          Constructs and starts the application.
 
Method Summary
 void exitApplication()
          Cleans up the application on exit.
 Log getLog()
           
 java.lang.String getProperty(java.lang.String key)
           
 StrutsConfig getStrutsConfig()
           
 java.lang.String getStrutsConfigFile()
           
 java.lang.String getVersion()
           
 StrutsConfig openStrutsConfig()
          Opens and parses the the current Struts configuration file.
 void setLog(Log log)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void setStrutsConfigFile(java.lang.String strutsConfigFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mosaique

public Mosaique(Log log)
         throws java.lang.Exception
Constructs and starts the application.

Parameters:
log - The log for messages.
Throws:
java.lang.Exception - if anything goes unexpectedly wrong
Method Detail

exitApplication

public void exitApplication()
Cleans up the application on exit.


getVersion

public java.lang.String getVersion()
Returns:
The Mosaique application version.

getLog

public Log getLog()
Returns:
The log Mosaique currently writes messages to. Can be null. Can change, don't cache a reference.

setLog

public void setLog(Log log)
Parameters:
log - The log to write messages to. Can be set by the creator of this class to define where to log to.

getProperty

public java.lang.String getProperty(java.lang.String key)
Parameters:
key - The property's key.
Returns:
The property value or null if the property does not exist.

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
Parameters:
key - The property's key. Must not be null.
value - The property's value. Must not be null.

getStrutsConfigFile

public java.lang.String getStrutsConfigFile()
Returns:
The full path of the current Struts configuration file.

setStrutsConfigFile

public void setStrutsConfigFile(java.lang.String strutsConfigFile)
Parameters:
strutsConfigFile - The full path of the current Struts configuration file.

getStrutsConfig

public StrutsConfig getStrutsConfig()
Returns:
The internal representation of the current Struts configuration file.

openStrutsConfig

public StrutsConfig openStrutsConfig()
                              throws java.lang.Exception
Opens and parses the the current Struts configuration file.

Returns:
The successfully opened Struts configuration.
Throws:
java.lang.Exception - if anything goes wrong


Copyright © 2005-2006 . All Rights Reserved.