/*******************************************************************************
* Copyright 2009, 2010 Innovation Gate GmbH. All Rights Reserved.
*
* This file is part of the OpenWGA server platform.
*
* OpenWGA is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* In addition, a special exception is granted by the copyright holders
* of OpenWGA called "OpenWGA plugin exception". You should have received
* a copy of this exception along with OpenWGA in file COPYING.
* If not, see <http://www.openwga.com/gpl-plugin-exception>.
*
* OpenWGA is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenWGA in file COPYING.
* If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
package de.innovationgate.wgpublisher.modules;
import de.innovationgate.wga.modules.ModuleRegistrar;
import de.innovationgate.wga.modules.ModuleRegistry;
import de.innovationgate.wga.modules.types.LanguageBehaviourModuleType;
import de.innovationgate.wgpublisher.modules.auth.CSAuthModuleDefinition;
import de.innovationgate.wgpublisher.modules.auth.PluginAuthModuleDefinition;
import de.innovationgate.wgpublisher.modules.design.provider.DBDesignProviderModuleDefinition;
import de.innovationgate.wgpublisher.modules.design.provider.FileSystemDesignProviderModuleDefinition;
import de.innovationgate.wgpublisher.modules.design.provider.PluginDesignProviderModuleDefinition;
import de.innovationgate.wgpublisher.modules.design.sources.DBDesignSourceModuleDefinition;
import de.innovationgate.wgpublisher.modules.design.sources.DefaultFileSystemDesignSourceModuleDefinition;
import de.innovationgate.wgpublisher.modules.design.sources.FileSystemDesignSourceModuleDefinition;
import de.innovationgate.wgpublisher.modules.design.sources.PluginDesignSourceModuleDefinition;
import de.innovationgate.wgpublisher.modules.lang.DynamicLanguageBehaviourModuleDefinition;
import de.innovationgate.wgpublisher.modules.lang.OnlyDefaultLanguageBehaviourModuleDefinition;
import de.innovationgate.wgpublisher.modules.lang.StaticLanguageBehaviourModuleDefinition;
import de.innovationgate.wgpublisher.modules.mailoptions.MailOptionsCollector;
import de.innovationgate.wgpublisher.modules.poptions.BaseContentDatabasePublisherOptionsModuleDefinition;
import de.innovationgate.wgpublisher.modules.poptions.BaseContentStorePublisherOptionsModuleDefinition;
import de.innovationgate.wgpublisher.modules.poptions.ContentDatabasePublisherOptionsCollector;
import de.innovationgate.wgpublisher.modules.poptions.ContentStorePublisherOptionsCollector;
import de.innovationgate.wgpublisher.modules.schedulertasks.JavaTaskModuleDefinition;
import de.innovationgate.wgpublisher.modules.schedulertasks.ScriptTaskModuleDefinition;
import de.innovationgate.wgpublisher.modules.serveroptions.BasicModuleDefinition;
import de.innovationgate.wgpublisher.modules.serveroptions.BasicServicesModuleDefinition;
import de.innovationgate.wgpublisher.modules.serveroptions.CacheModuleDefinition;
import de.innovationgate.wgpublisher.modules.serveroptions.LogModuleDefinition;
import de.innovationgate.wgpublisher.modules.serveroptions.ServicesCollector;
import de.innovationgate.wgpublisher.modules.serveroptions.VariousModuleDefinition;
import de.innovationgate.wgpublisher.modules.servers.HsqlDefaultDatabaseServerModuleDefinition;
public class WGARegistrar implements ModuleRegistrar {
public void registerModules(ModuleRegistry registry) {
// WGA Server options
registry.addModuleDefinition(new BasicModuleDefinition());
registry.addModuleDefinition(new ServicesCollector());
registry.addModuleDefinition(new BasicServicesModuleDefinition());
registry.addModuleDefinition(new LogModuleDefinition());
registry.addModuleDefinition(new CacheModuleDefinition());
registry.addModuleDefinition(new VariousModuleDefinition());
// Mail options
registry.addModuleDefinition(new MailOptionsCollector());
// Design Sources
registry.addModuleDefinition(new DBDesignSourceModuleDefinition());
registry.addModuleDefinition(new PluginDesignSourceModuleDefinition());
registry.addModuleDefinition(new FileSystemDesignSourceModuleDefinition());
registry.addModuleDefinition(new DefaultFileSystemDesignSourceModuleDefinition());
// Design Provider
registry.addModuleDefinition(new DBDesignProviderModuleDefinition());
registry.addModuleDefinition(new PluginDesignProviderModuleDefinition());
registry.addModuleDefinition(new FileSystemDesignProviderModuleDefinition());
// Publisher options
registry.addModuleDefinition(new ContentDatabasePublisherOptionsCollector());
registry.addModuleDefinition(new ContentStorePublisherOptionsCollector());
registry.addModuleDefinition(new BaseContentDatabasePublisherOptionsModuleDefinition());
registry.addModuleDefinition(new BaseContentStorePublisherOptionsModuleDefinition());
// Servers
registry.addModuleDefinition(new HsqlDefaultDatabaseServerModuleDefinition());
// Auth Modules
registry.addModuleDefinition(new CSAuthModuleDefinition());
registry.addModuleDefinition(new PluginAuthModuleDefinition());
// Scheduler Tasks
registry.addModuleDefinition(new ScriptTaskModuleDefinition());
registry.addModuleDefinition(new JavaTaskModuleDefinition());
// Language behaviours
registry.addModuleDefinition(new StaticLanguageBehaviourModuleDefinition());
registry.addModuleDefinition(new DynamicLanguageBehaviourModuleDefinition());
registry.addModuleDefinition(new OnlyDefaultLanguageBehaviourModuleDefinition());
}
}