View Javadoc

1   /**
2    *  Copyright 2003-2007 Greg Luck
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  
17  package net.sf.ehcache.config;
18  
19  /**
20   * A class to represent the CacheManagerEventListener configuration.
21   * @author <a href="mailto:gluck@thoughtworks.com">Greg Luck</a>
22   * @version $Id: FactoryConfiguration.java 512 2007-07-10 09:18:45Z gregluck $
23   */
24  public class FactoryConfiguration {
25      /**
26       * class name.
27       */
28      protected String fullyQualifiedClassPath;
29  
30      /**
31       * properties.
32       */
33      protected String properties;
34  
35      /**
36       * A property separator. By default it is a comma, but other separators can be configured.
37       */
38      protected String propertySeparator;
39  
40  
41      /**
42       * Sets the class name.
43       *
44       * @param fullyQualifiedClassPath
45       */
46      public final void setClass(String fullyQualifiedClassPath) {
47          this.fullyQualifiedClassPath = fullyQualifiedClassPath;
48      }
49  
50      /**
51       * Sets the configuration properties.
52       *
53       * @param properties
54       */
55      public final void setProperties(String properties) {
56          this.properties = properties;
57      }
58  
59      /**
60       * Getter.
61       */
62      public final String getFullyQualifiedClassPath() {
63          return fullyQualifiedClassPath;
64      }
65  
66      /**
67       * Getter.
68       */
69      public final String getProperties() {
70          return properties;
71      }
72  
73      /**
74       * Getter
75       */
76      public String getPropertySeparator() {
77          return propertySeparator;
78      }
79  
80      /**
81       * Setter
82       */
83      public void setPropertySeparator(String propertySeparator) {
84          this.propertySeparator = propertySeparator;
85      }
86  }