View Javadoc

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