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 516881 2007-03-11 10:34:21Z ate $
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

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

void deRegister(Entry entry)
De-registers the entry

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

isRegistered

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

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

Returns:


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