001: package org.tigris.scarab.services.cache;
002:
003: /* ================================================================
004: * Copyright (c) 2001 Collab.Net. All rights reserved.
005: *
006: * Redistribution and use in source and binary forms, with or without
007: * modification, are permitted provided that the following conditions are
008: * met:
009: *
010: * 1. Redistributions of source code must retain the above copyright
011: * notice, this list of conditions and the following disclaimer.
012: *
013: * 2. Redistributions in binary form must reproduce the above copyright
014: * notice, this list of conditions and the following disclaimer in the
015: * documentation and/or other materials provided with the distribution.
016: *
017: * 3. The end-user documentation included with the redistribution, if
018: * any, must include the following acknowlegement: "This product includes
019: * software developed by Collab.Net <http://www.Collab.Net/>."
020: * Alternately, this acknowlegement may appear in the software itself, if
021: * and wherever such third-party acknowlegements normally appear.
022: *
023: * 4. The hosted project names must not be used to endorse or promote
024: * products derived from this software without prior written
025: * permission. For written permission, please contact info@collab.net.
026: *
027: * 5. Products derived from this software may not use the "Tigris" or
028: * "Scarab" names nor may "Tigris" or "Scarab" appear in their names without
029: * prior written permission of Collab.Net.
030: *
031: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
032: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
033: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
034: * IN NO EVENT SHALL COLLAB.NET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
035: * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
036: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
037: * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
038: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
039: * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
040: * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
041: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
042: *
043: * ====================================================================
044: *
045: * This software consists of voluntary contributions made by many
046: * individuals on behalf of Collab.Net.
047: */
048:
049: import java.io.Serializable;
050: import java.util.Map;
051:
052: /**
053: * This class does not cache any results. Calls to ScarabCache's put and
054: * clear are ignored and ScarabCache.get always returns null.
055: *
056: * @author <a href="mailto:jmcnally@collab.net">John McNally</a>
057: * @version $Id: NoOpScarabCacheService.java 9261 2004-11-15 09:24:02Z dep4b $
058: */
059: public class NoOpScarabCacheService implements ScarabCacheService {
060:
061: public NoOpScarabCacheService() {
062: }
063:
064: public void clearImpl() {
065: }
066:
067: public Object getImpl(int numArgs, Object o1, Object o2, Object o3,
068: Object o4, Object o5, Object o6, Object o7) {
069: return null;
070: }
071:
072: public void putImpl(Object value, int numArgs, Object o1,
073: Object o2, Object o3, Object o4, Object o5, Object o6,
074: Object o7) {
075: }
076:
077: /* (non-Javadoc)
078: * @see org.tigris.scarab.services.cache.ScarabCacheService#getImpl(java.io.Serializable, java.lang.String, java.io.Serializable, java.io.Serializable, java.io.Serializable)
079: */
080: public Object getImpl(Serializable instanceOrClass, String method,
081: Serializable arg1, Serializable arg2, Serializable arg3) {
082: // TODO Auto-generated method stub
083: return null;
084: }
085:
086: /* (non-Javadoc)
087: * @see org.tigris.scarab.services.cache.ScarabCacheService#getImpl(java.io.Serializable, java.lang.String, java.io.Serializable, java.io.Serializable)
088: */
089: public Object getImpl(Serializable instanceOrClass, String method,
090: Serializable arg1, Serializable arg2) {
091: // TODO Auto-generated method stub
092: return null;
093: }
094:
095: /* (non-Javadoc)
096: * @see org.tigris.scarab.services.cache.ScarabCacheService#getImpl(java.io.Serializable, java.lang.String, java.io.Serializable)
097: */
098: public Object getImpl(Serializable instanceOrClass, String method,
099: Serializable arg1) {
100: // TODO Auto-generated method stub
101: return null;
102: }
103:
104: /* (non-Javadoc)
105: * @see org.tigris.scarab.services.cache.ScarabCacheService#getImpl(java.io.Serializable, java.lang.String)
106: */
107: public Object getImpl(Serializable instanceOrClass, String method) {
108: // TODO Auto-generated method stub
109: return null;
110: }
111:
112: /* (non-Javadoc)
113: * @see org.tigris.scarab.services.cache.ScarabCacheService#getImpl(java.io.Serializable[])
114: */
115: public Object getImpl(Serializable[] keys) {
116: // TODO Auto-generated method stub
117: return null;
118: }
119:
120: /* (non-Javadoc)
121: * @see org.tigris.scarab.services.cache.ScarabCacheService#getMapImpl()
122: */
123: public Map getMapImpl() {
124: // TODO Auto-generated method stub
125: return null;
126: }
127:
128: /* (non-Javadoc)
129: * @see org.tigris.scarab.services.cache.ScarabCacheService#putImpl(java.lang.Object, java.io.Serializable, java.lang.String, java.io.Serializable, java.io.Serializable, java.io.Serializable)
130: */
131: public void putImpl(Object value, Serializable instanceOrClass,
132: String method, Serializable arg1, Serializable arg2,
133: Serializable arg3) {
134: // TODO Auto-generated method stub
135:
136: }
137:
138: /* (non-Javadoc)
139: * @see org.tigris.scarab.services.cache.ScarabCacheService#putImpl(java.lang.Object, java.io.Serializable, java.lang.String, java.io.Serializable, java.io.Serializable)
140: */
141: public void putImpl(Object value, Serializable instanceOrClass,
142: String method, Serializable arg1, Serializable arg2) {
143: // TODO Auto-generated method stub
144:
145: }
146:
147: /* (non-Javadoc)
148: * @see org.tigris.scarab.services.cache.ScarabCacheService#putImpl(java.lang.Object, java.io.Serializable, java.lang.String, java.io.Serializable)
149: */
150: public void putImpl(Object value, Serializable instanceOrClass,
151: String method, Serializable arg1) {
152: // TODO Auto-generated method stub
153:
154: }
155:
156: /* (non-Javadoc)
157: * @see org.tigris.scarab.services.cache.ScarabCacheService#putImpl(java.lang.Object, java.io.Serializable, java.lang.String)
158: */
159: public void putImpl(Object value, Serializable instanceOrClass,
160: String method) {
161: // TODO Auto-generated method stub
162:
163: }
164:
165: /* (non-Javadoc)
166: * @see org.tigris.scarab.services.cache.ScarabCacheService#putImpl(java.lang.Object, java.io.Serializable[])
167: */
168: public void putImpl(Object value, Serializable[] keys) {
169: // TODO Auto-generated method stub
170:
171: }
172: }
|