1/*2* Licensed to the Apache Software Foundation (ASF) under one or more3* contributor license agreements. See the NOTICE file distributed with4* this work for additional information regarding copyright ownership.5* The ASF licenses this file to You under the Apache License, Version 2.06* (the "License"); you may not use this file except in compliance with7* the License. You may obtain a copy of the License at8*9* http://www.apache.org/licenses/LICENSE-2.010*11* Unless required by applicable law or agreed to in writing, software12* distributed under the License is distributed on an "AS IS" BASIS,13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14* See the License for the specific language governing permissions and15* limitations under the License.16*/17/***18 * Created on Jan 13, 200419 *20 * 21 * @author22 */23packageorg.apache.jetspeed.deployment.simpleregistry;
2425import java.util.Collection;
2627/***28 * <p>29 * SimpleRegistry30 * </p>31 * <p>32 * This is an interface for creating simple registry systems. A good example would be an33 * in memory registry that gets populate at runtime and is lost on shutdown.34 * 35 * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>36 * @version $Id: SimpleRegistry.java 516881 2007-03-11 10:34:21Z ate $37 *38 */39publicinterfaceSimpleRegistry40 {
41/***42 * Registers the entry.43 * 44 * @throws java.lang.IllegalAgrumentException in <code>entry</code> is null or45 * <code>entry.getId()</code> is null46 * @throws org.apache.jetspeed.cps.simpleregistry if this <code>entry</code> is 47 * already registered.48 * @param entry49 */50publicvoid register(Entry entry) throws SimpleRegistryException;
5152/***53 * De-registers the entry54 * @param entry55 * @throws java.lang.IllegalAgrumentException in <code>entry</code> is null or56 * <code>entry.getId()</code> is null57 */58publicvoid deRegister(Entry entry);
5960/***61 * Verifies whether or not this entry is registered.62 * @param entry63 * 64 * @return boolean <code>true</code> is the <code>entry</code> is registered65 * otherwise <code>false</code>.66 * @throws java.lang.IllegalAgrumentException in <code>entry</code> is null or67 * <code>entry.getId()</code> is null68 */69publicboolean isRegistered(Entry entry);
7071/***72 * Provides a Cloolection of <code>org.apache.jetspeed.cps.simpleregistry.Entry</code>73 * objects that are currently registered to this registery74 * @return75 */76public Collection getRegistry();
7778 }