1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.om.registry.base;
18
19 import org.apache.jetspeed.om.registry.Registry;
20 import org.apache.jetspeed.om.registry.RegistryEntry;
21 import org.apache.jetspeed.om.registry.InvalidEntryException;
22
23 /***
24 * This interface declares the methods used by the RegistryService to
25 * set entries within the registry without impacting the persistant state.
26 *
27 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>
28 * @version $Id: LocalRegistry.java,v 1.2 2004/02/23 03:08:26 jford Exp $
29 */
30 public interface LocalRegistry extends Registry
31 {
32 /***
33 * This method is used to only set the entry in the local
34 * memory cache of the registry without any coherency check with
35 * persistent storage
36 *
37 * @param entry the RegistryEntry to store
38 */
39 public void setLocalEntry( RegistryEntry entry ) throws InvalidEntryException;
40
41 /***
42 * This method is used to only add the entry in the local
43 * memory cache of the registry without any coherency check with
44 * persistent storage
45 *
46 * @param entry the RegistryEntry to store
47 */
48 public void addLocalEntry( RegistryEntry entry ) throws InvalidEntryException;
49
50 /***
51 * This method is used to only remove the entry from the local
52 * memory cache of the registry without any coherency check with
53 * persistent storage
54 *
55 * @param name the name of the RegistryEntry to remove
56 */
57 public void removeLocalEntry( String name );
58
59 /***
60 * This method is used to only remove the entry from the local
61 * memory cache of the registry without any coherency check with
62 * persistent storage
63 *
64 * @param entry the RegistryEntry to remove
65 */
66 public void removeLocalEntry( RegistryEntry entry );
67
68 }