001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.ejb3.metamodel;
023:
024: /**
025: * Represents an <cache-config> element of the jboss.xml deployment descriptor
026: *
027: * @author <a href="mailto:bdecoste@jboss.com">William DeCoste</a>
028: * @version <tt>$Revision: 61291 $</tt>
029: */
030: public class CacheConfig {
031: private String cacheClass = null;
032: private String maxSize = null;
033: private String idleTimeoutSeconds = null;
034: private String removeTimeoutSeconds = null;
035: private String name = null;
036: private String persistenceManager = null;
037: private String replicationIsPassivation = null;
038:
039: public String getPersistenceManager() {
040: return persistenceManager;
041: }
042:
043: public void setPersistenceManager(String persistenceManager) {
044: this .persistenceManager = persistenceManager;
045: }
046:
047: public String getCacheClass() {
048: return cacheClass;
049: }
050:
051: public void setCacheClass(String cacheClass) {
052: this .cacheClass = cacheClass;
053: }
054:
055: public String getMaxSize() {
056: return maxSize;
057: }
058:
059: public void setMaxSize(String maxSize) {
060: this .maxSize = maxSize;
061: }
062:
063: public String getIdleTimeoutSeconds() {
064: return idleTimeoutSeconds;
065: }
066:
067: public void setIdleTimeoutSeconds(String idleTimeoutSeconds) {
068: this .idleTimeoutSeconds = idleTimeoutSeconds;
069: }
070:
071: public String getRemoveTimeoutSeconds() {
072: return removeTimeoutSeconds;
073: }
074:
075: public void setRemoveTimeoutSeconds(String removeTimeoutSeconds) {
076: this .removeTimeoutSeconds = removeTimeoutSeconds;
077: }
078:
079: public String getName() {
080: return name;
081: }
082:
083: public void setName(String name) {
084: this .name = name;
085: }
086:
087: public String getReplicationIsPassivation() {
088: return replicationIsPassivation;
089: }
090:
091: public void setReplicationIsPassivation(
092: String replicationIsPassivation) {
093: this .replicationIsPassivation = replicationIsPassivation;
094: }
095:
096: public String toString() {
097: StringBuffer sb = new StringBuffer(100);
098: sb.append("[");
099: sb.append("cacheClass=").append(cacheClass);
100: sb.append(", maxSize=").append(maxSize);
101: sb.append(", idleTimeoutSeconds=").append(idleTimeoutSeconds);
102: sb.append(", name=").append(name);
103: sb.append(", replicationIsPassivation=").append(
104: replicationIsPassivation);
105: sb.append("]");
106: return sb.toString();
107: }
108:
109: }
|