it.eng.spago.cms.init
Class CMSInitializer

java.lang.Object
  extended by it.eng.spago.cms.init.CMSInitializer

public class CMSInitializer
extends java.lang.Object

Initializes the Content Management System using some configuration parameters. The class is called from Spago Framework during the Application Start-Up. Creates the repository and all objects necessary for using it within SòagoCms


Constructor Summary
CMSInitializer()
           
 
Method Summary
 SourceBean getConfig()
          return the SourceBean which contains the configuration of the repository.
 void init(SourceBean config)
          Creates and initializes all the repositories defined in the configuration SourceBean.
 void setUp()
          Creates and initializes all the repositories defined into the configuration SourceBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSInitializer

public CMSInitializer()
Method Detail

init

public void init(SourceBean config)
Creates and initializes all the repositories defined in the configuration SourceBean. The method is called automatically from Spago Framework, during the application start up, if the CMSInitializer is configured into Spago initializers.xml file

Parameters:
config, - SourceBean containing configuration parameters for each repository to create

setUp

public void setUp()
Creates and initializes all the repositories defined into the configuration SourceBean. This method is not autonatically called from Spago.


getConfig

public SourceBean getConfig()
return the SourceBean which contains the configuration of the repository.