1 package org.apache.commons.betwixt.registry;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 155402 2005-02-26 12:52:00Z dirkv $
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 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 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 }