001: /*
002: * $Header: /export/home/cvsroot/MyPersonalizerRepository/MyPersonalizer/Subsystems/Kernel/Sources/es/udc/mypersonalizer/kernel/config/KernelModelConfig.java,v 1.1.1.1 2004/03/25 12:08:38 fbellas Exp $
003: * $Revision: 1.1.1.1 $
004: * $Date: 2004/03/25 12:08:38 $
005: *
006: * =============================================================================
007: *
008: * Copyright (c) 2003, The MyPersonalizer Development Group
009: * (http://www.tic.udc.es/~fbellas/mypersonalizer/index.html) at
010: * University Of A Coruna
011: * All rights reserved.
012: *
013: * Redistribution and use in source and binary forms, with or without
014: * modification, are permitted provided that the following conditions are met:
015: *
016: * - Redistributions of source code must retain the above copyright notice,
017: * this list of conditions and the following disclaimer.
018: *
019: * - Redistributions in binary form must reproduce the above copyright notice,
020: * this list of conditions and the following disclaimer in the documentation
021: * and/or other materials provided with the distribution.
022: *
023: * - Neither the name of the University Of A Coruna nor the names of its
024: * contributors may be used to endorse or promote products derived from
025: * this software without specific prior written permission.
026: *
027: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
028: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
029: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
030: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
031: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
032: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
033: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
034: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
035: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
036: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
037: * POSSIBILITY OF SUCH DAMAGE.
038: *
039: */
040:
041: package es.udc.mypersonalizer.kernel.config;
042:
043: /**
044: * This is the configuration bean for the Kernel subsystem's model, as
045: * specified by the <code>kernel-model</code> tag in the Kernel configuration
046: * file. It contains:
047: * <ul>
048: * <li>Configuration for the
049: * <b>PropertyStorageStrategyRegistrySingleton</b></li>
050: * <li>Configuration for the <b>ConnectionPoolAdapterSingleton</b></li>
051: * <li>Configuration for the <b>Database</b>.
052: * <li>Configuration for the <b>TransactionManager</b>.
053: * <li>Configuration for the <b>LogManager</b>.
054: * <li>Configuration for the <b>ActionProcessorSingleton</b>.
055: * <li>Configuration for the <b>ActionRegistry</b>.
056: * <li>Configuration for the <b>RepositoryAccessorFactory</b>.
057: * <li>Configuration for the <b>EditorFactory</b>.
058: * </ul>
059: *
060: * @author Daniel Fernandez
061: * @since 1.0
062: */
063: public class KernelModelConfig {
064:
065: /**
066: * The configuration for the PropertyStorageStrategyRegistrySingleton.
067: */
068: private PropertyStorageStrategyRegistrySingletonConfig propertyStorageStrategyRegistrySingletonConfig = null;
069:
070: /**
071: * Configuration for the Database.
072: */
073: private DatabaseConfig databaseConfig = null;
074:
075: /**
076: * Configuration for the Transaction Manager.
077: */
078: private TransactionManagerConfig transactionManagerConfig = null;
079:
080: /**
081: * Configuration for the Log Manager.
082: */
083: private LogManagerConfig logManagerConfig = null;
084:
085: /**
086: * Configuration for the ActionProcessor.
087: */
088: private ActionProcessorConfig actionProcessorConfig = null;
089:
090: /**
091: * Configuration for the ActionRegistry.
092: */
093: private ActionRegistryConfig actionRegistryConfig = null;
094:
095: /**
096: * Configuration for the RepositoryAccessorFactory.
097: */
098: private RepositoryAccessorFactoryConfig repositoryAccessorFactoryConfig = null;
099:
100: /**
101: * Configuration for the EditorFactory.
102: */
103: private EditorFactoryConfig editorFactoryConfig = null;
104:
105: /**
106: * Creates a new instance of KernelModelConfig.
107: */
108: public KernelModelConfig() {
109: }
110:
111: /**
112: * Return the configuration for the PropertyStorageStrategyRegistrySingleton
113: * in a {@link PropertyStorageStrategyRegistrySingletonConfig} object.
114: *
115: * @return a PropertyStorageStrategyRegistrySingletonConfig
116: * with the configuration.
117: */
118: public PropertyStorageStrategyRegistrySingletonConfig getPropertyStorageStrategyRegistrySingletonConfig() {
119: return propertyStorageStrategyRegistrySingletonConfig;
120: }
121:
122: /**
123: * Sets a new configuration for the
124: * PropertyStorageStrategyRegistrySingleton.
125: *
126: * @param propertyStorageStrategyRegistrySingletonConfig the new
127: * configuration.
128: */
129: public void setPropertyStorageStrategyRegistrySingletonConfig(
130: PropertyStorageStrategyRegistrySingletonConfig propertyStorageStrategyRegistrySingletonConfig) {
131: this .propertyStorageStrategyRegistrySingletonConfig = propertyStorageStrategyRegistrySingletonConfig;
132: }
133:
134: /**
135: * Returns the configuration for the Database in a
136: * {@link DatabaseConfig} object.
137: *
138: * @return a DatabaseConfig with the configuration.
139: */
140: public DatabaseConfig getDatabaseConfig() {
141: return databaseConfig;
142: }
143:
144: /**
145: * Sets a new configuration for the Database.
146: *
147: * @param databaseConfig the new configuration.
148: */
149: public void setDatabaseConfig(DatabaseConfig databaseConfig) {
150: this .databaseConfig = databaseConfig;
151: }
152:
153: /**
154: * Returns the configuration for the TransactionManager in a {@link
155: * TransactionManagerConfig} object.
156: *
157: * @return a TransactionManagerConfig with the configuration.
158: */
159: public TransactionManagerConfig getTransactionManagerConfig() {
160: return transactionManagerConfig;
161: }
162:
163: /**
164: * Sets a new configuration for the TransactionManager.
165: *
166: * @param transactionManagerConfig the new configuration.
167: */
168: public void setTransactionManagerConfig(
169: TransactionManagerConfig transactionManagerConfig) {
170: this .transactionManagerConfig = transactionManagerConfig;
171: }
172:
173: /**
174: * Returns the configuration for the LogManager in a
175: * {@link LogManagerConfig} object.
176: *
177: * @return a LogManagerConfig with the configuration.
178: */
179: public LogManagerConfig getLogManagerConfig() {
180: return logManagerConfig;
181: }
182:
183: /**
184: * Sets a new configuration for the LogManager.
185: *
186: * @param logManagerConfig the new configuration.
187: */
188: public void setLogManagerConfig(LogManagerConfig logManagerConfig) {
189: this .logManagerConfig = logManagerConfig;
190: }
191:
192: /**
193: * Returns the configuration for the ActionProcessorConfig in an {@link
194: * ActionProcessorConfig} object.
195: *
196: * @return an ActionProcessorConfig with the configuration.
197: */
198: public ActionProcessorConfig getActionProcessorConfig() {
199: return actionProcessorConfig;
200: }
201:
202: /**
203: * Sets a new configuration for the ActionProcessor.
204: *
205: * @param actionProcessorConfig the new configuration.
206: */
207: public void setActionProcessorConfig(
208: ActionProcessorConfig actionProcessorConfig) {
209: this .actionProcessorConfig = actionProcessorConfig;
210: }
211:
212: /**
213: * Returns the configuration for the ActionRegistry in a {@link
214: * ActionRegistryConfig} object.
215: *
216: * @return an ActionRegistryConfig with the configuration.
217: */
218: public ActionRegistryConfig getActionRegistryConfig() {
219: return actionRegistryConfig;
220: }
221:
222: /**
223: * Sets a new configuration for the ActionRegistry.
224: *
225: * @param actionRegistryConfig the new configuration.
226: */
227: public void setActionRegistryConfig(
228: ActionRegistryConfig actionRegistryConfig) {
229: this .actionRegistryConfig = actionRegistryConfig;
230: }
231:
232: /**
233: * Returns the configuration for the RepositoryAccessorFactory as a {@link
234: * RepositoryAccessorFactoryConfig} object.
235: *
236: * @return a RepositoryAccessorFactory with the configuration.
237: */
238: public RepositoryAccessorFactoryConfig getRepositoryAccessorFactoryConfig() {
239: return repositoryAccessorFactoryConfig;
240: }
241:
242: /**
243: * Sets a new configuration for the RepositoryAccessorFactory.
244: *
245: * @param repositoryAccessorFactoryConfig the new configuration.
246: */
247: public void setRepositoryAccessorFactoryConfig(
248: RepositoryAccessorFactoryConfig repositoryAccessorFactoryConfig) {
249: this .repositoryAccessorFactoryConfig = repositoryAccessorFactoryConfig;
250: }
251:
252: /**
253: * Returns the configuration for the EditorFactory in an {@link
254: * EditorFactoryConfig} object.
255: *
256: * @return an EditorFactoryConfig with the configuration.
257: */
258: public EditorFactoryConfig getEditorFactoryConfig() {
259: return editorFactoryConfig;
260: }
261:
262: /**
263: * Sets a new configuration for the EditorFactory.
264: *
265: * @param editorFactoryConfig the new configuration.
266: */
267: public void setEditorFactoryConfig(
268: EditorFactoryConfig editorFactoryConfig) {
269: this.editorFactoryConfig = editorFactoryConfig;
270: }
271:
272: }
|