org.apache.jetspeed.deployment.simpleregistry
Interface SimpleRegistry

All Known Implementing Classes:
InMemoryRegistryImpl

public interface SimpleRegistry

SimpleRegistry

This is an interface for creating simple registry systems. A good example would be an in memory registry that gets populate at runtime and is lost on shutdown.

Version:
$Id: SimpleRegistry.java 186206 2004-03-25 21:42:32Z jford $
Author:
Scott T. Weaver

Method Summary
 void deRegister(Entry entry)
          De-registers the entry
 Collection getRegistry()
          Provides a Cloolection of org.apache.jetspeed.cps.simpleregistry.Entry objects that are currently registered to this registery
 boolean isRegistered(Entry entry)
          Verifies whether or not this entry is registered.
 void register(Entry entry)
          Registers the entry.
 

Method Detail

register

public void register(Entry entry)
              throws SimpleRegistryException
Registers the entry.

Parameters:
entry -
Throws:
java.lang.IllegalAgrumentException - in entry is null or entry.getId() is null
org.apache.jetspeed.cps.simpleregistry - if this entry is already registered.
SimpleRegistryException

deRegister

public void deRegister(Entry entry)
De-registers the entry

Parameters:
entry -
Throws:
java.lang.IllegalAgrumentException - in entry is null or entry.getId() is null

isRegistered

public boolean isRegistered(Entry entry)
Verifies whether or not this entry is registered.

Parameters:
entry -
Returns:
boolean true is the entry is registered otherwise false.
Throws:
java.lang.IllegalAgrumentException - in entry is null or entry.getId() is null

getRegistry

public Collection getRegistry()
Provides a Cloolection of org.apache.jetspeed.cps.simpleregistry.Entry objects that are currently registered to this registery

Returns:


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.