Nuxeo Enterprise Platform 5.3

org.nuxeo.runtime.deployment.preprocessor
Class ConfigurationGenerator

java.lang.Object
  extended by org.nuxeo.runtime.deployment.preprocessor.ConfigurationGenerator

public class ConfigurationGenerator
extends Object

Builder for server configuration and datasource files from templates and properties.

Author:
jcarsique

Field Summary
static String NUXEO_CONF
           
protected static String NUXEO_DEFAULT_CONF
           
static String NUXEO_HOME
           
protected static String PARAM_FORCE_GENERATION
           
protected static String PARAM_INCLUDED_TEMPLATES
          Absolute or relative PATH to the included templates (comma separated list)
protected static String PARAM_TEMPLATE_NAME
          Deprecated. use PARAM_TEMPLATES_NAME instead
protected static String PARAM_TEMPLATES_NAME
          Absolute or relative PATH to the user chosen templates (comma separated list)
protected static String TEMPLATES
           
 
Constructor Summary
ConfigurationGenerator()
           
 
Method Summary
protected  void browseTemplates()
           
protected  void generateFiles()
           
 List<File> getIncludedTemplates()
           
 File getNuxeoDefaultConf()
           
 File getNuxeoHome()
           
 Properties getUserConfig()
           
 void run()
          Run the configuration files generation
 void setForceGeneration(boolean forceGeneration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUXEO_HOME

public static final String NUXEO_HOME
See Also:
Constant Field Values

NUXEO_CONF

public static final String NUXEO_CONF
See Also:
Constant Field Values

TEMPLATES

protected static final String TEMPLATES
See Also:
Constant Field Values

NUXEO_DEFAULT_CONF

protected static final String NUXEO_DEFAULT_CONF
See Also:
Constant Field Values

PARAM_TEMPLATE_NAME

protected static final String PARAM_TEMPLATE_NAME
Deprecated. use PARAM_TEMPLATES_NAME instead
Absolute or relative PATH to the user chosen template

See Also:
Constant Field Values

PARAM_TEMPLATES_NAME

protected static final String PARAM_TEMPLATES_NAME
Absolute or relative PATH to the user chosen templates (comma separated list)

See Also:
Constant Field Values

PARAM_INCLUDED_TEMPLATES

protected static final String PARAM_INCLUDED_TEMPLATES
Absolute or relative PATH to the included templates (comma separated list)

See Also:
Constant Field Values

PARAM_FORCE_GENERATION

protected static final String PARAM_FORCE_GENERATION
See Also:
Constant Field Values
Constructor Detail

ConfigurationGenerator

public ConfigurationGenerator()
Method Detail

setForceGeneration

public void setForceGeneration(boolean forceGeneration)

getUserConfig

public Properties getUserConfig()

run

public void run()
         throws ConfigurationException
Run the configuration files generation

Throws:
ConfigurationException

generateFiles

protected void generateFiles()
                      throws ConfigurationException
Throws:
ConfigurationException

browseTemplates

protected void browseTemplates()
                        throws FileNotFoundException,
                               IOException,
                               ConfigurationException
Throws:
FileNotFoundException
IOException
ConfigurationException

getNuxeoHome

public File getNuxeoHome()

getNuxeoDefaultConf

public File getNuxeoDefaultConf()

getIncludedTemplates

public List<File> getIncludedTemplates()

Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.