Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
NoCacheRegistry |
|
| 1.0;1 |
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 155402 2005-02-26 12:52:00 +0000 (Sat, 26 Feb 2005) dirkv $ |
|
26 | */ |
|
27 | 39 | 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 | 65 | 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 | 52 | 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 | 0 | } |
54 | ||
55 | } |