KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > registry > NoCacheRegistry


1 package org.apache.commons.betwixt.registry;
2
3 /*
4  * Copyright 2001-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18  
19 import org.apache.commons.betwixt.XMLBeanInfo;
20
21 /** This plug-in registry does not cache at all.
22   * In effect, this turns caching off.
23   *
24   * @author <a HREF="mailto:rdonkin@apache.org">Robert Burrell Donkin</a>
25   * @version $Id: NoCacheRegistry.java,v 1.6 2004/02/28 13:38:33 yoavs Exp $
26   */

27 public final class NoCacheRegistry implements XMLBeanInfoRegistry {
28     
29     /** Always return null.
30       *
31       * @param forThisClass this parameter is ignored
32       * @return <code>null</code>
33       */

34     public XMLBeanInfo get(Class JavaDoc forThisClass) {
35         return null;
36     }
37     
38     /**
39      * Do nothing (this implementation does not cache)
40      *
41      * @param forThisClass the class is ignored
42      * @param beanInfo the <code>XMLBeanInfo</code> is ignored
43      */

44     public void put(Class JavaDoc forThisClass, XMLBeanInfo beanInfo) {}
45     
46     /**
47      * Nothing cached so nothing to flush
48      *
49      * @see org.apache.commons.betwixt.registry.XMLBeanInfoRegistry#flush()
50      *
51      */

52     public void flush() {
53     }
54
55 }
56
Popular Tags