info.magnolia.cms.beans.config
Class ConfigLoader

java.lang.Object
  extended by info.magnolia.cms.beans.config.ConfigLoader

@Singleton
public class ConfigLoader
extends Object

This class is an entry point to all config.

Version:
$Id$

Constructor Summary
ConfigLoader(ModuleManager moduleManager, ModuleRegistry moduleRegistry, LicenseFileExtractor licenseFileExtractor, MessagesManager messagesManager, VersionConfig versionConfig, javax.servlet.ServletContext context)
          Initialize a ConfigLoader instance.
 
Method Summary
protected  ComponentProviderConfiguration getMainComponents()
           
 void load()
          Load magnolia configuration from repositories.
 void load(javax.servlet.ServletContext servletContext)
          Deprecated. since 4.5, use load(), dependencies are injected.
 void unload()
           
 void unload(javax.servlet.ServletContext servletContext)
          Deprecated. since 4.5, use unload(), dependencies are injected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigLoader

@Inject
public ConfigLoader(ModuleManager moduleManager,
                           ModuleRegistry moduleRegistry,
                           LicenseFileExtractor licenseFileExtractor,
                           MessagesManager messagesManager,
                           VersionConfig versionConfig,
                           javax.servlet.ServletContext context)
Initialize a ConfigLoader instance. All the supplied parameters will be set in info.magnolia.cms.beans.runtime.SystemProperty

Parameters:
context - ServletContext
See Also:
TODO - some of the dependencies here don't belong, we're only calling init() on those, which should be moved to a lifecycle management api (IoC has one)
Method Detail

unload

public void unload(javax.servlet.ServletContext servletContext)
Deprecated. since 4.5, use unload(), dependencies are injected.


unload

public void unload()

load

public void load(javax.servlet.ServletContext servletContext)
Deprecated. since 4.5, use load(), dependencies are injected.


load

public void load()
Load magnolia configuration from repositories.


getMainComponents

protected ComponentProviderConfiguration getMainComponents()


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.