1 /**
2 * $Id: BaseComponentDefImpl.java 58 2006-11-08 14:52:38Z maldito_orco $
3 *
4 * =========================================================================
5 *
6 * Copyright 2005 Tubo
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 package org.tubo.configuration.def.baseimpl;
21
22
23 import org.apache.commons.logging.Log;
24 import org.apache.commons.logging.LogFactory;
25
26 import org.tubo.configuration.def.ComponentDef;
27
28 /**
29 * <p></p>
30 * <p>
31 * Created: Jun 27, 2005 6:59:40 PM <br>
32 * Last Modification Date: $Date: 2006-11-08 11:52:38 -0300 (Wed, 08 Nov 2006) $
33 * </p>
34 *
35 * @author maldito_orco (maldito_orco@users.sourceforge.net)
36 * @version $Revision: 58 $
37 */
38 public class BaseComponentDefImpl extends BaseReferenceableItemDefImpl implements ComponentDef {
39 public static final String RCS_ID = "$Id: BaseComponentDefImpl.java 58 2006-11-08 14:52:38Z maldito_orco $";
40 private static Log log = LogFactory.getLog(BaseComponentDefImpl.class);
41
42
43 private String factoryClassname = null;
44 private String componentClassname = null;
45 private String type = null;
46 private int minCapacity = -1;
47 private int maxCapacity = -1;
48
49 public String getFactoryClassname() { return factoryClassname; }
50 public void setFactoryClassname(String factoryClassname) {
51 this.factoryClassname = factoryClassname;
52 }
53
54 public String getComponentClassname() { return componentClassname; }
55 public void setComponentClassname(String componentClassname) {
56 this.componentClassname = componentClassname;
57 }
58
59 public String getType() { return type; }
60 public void setType(String type) {
61 this.type = type;
62 }
63
64 public int getMinCapacity() { return minCapacity; }
65 public void setMinCapacity(int minCapacity) {
66 this.minCapacity = minCapacity;
67 }
68
69 public int getMaxCapacity() { return maxCapacity; }
70 public void setMaxCapacity(int maxCapacity) {
71 this.maxCapacity = maxCapacity;
72 }
73 }