org.sapia.regis
Interface Registry

All Known Implementing Classes:
CacheRegistry, HibernateRegistry, LocalRegistry, PrevaylerRegistry, RemoteRegistry, RemoteRegistryProxy

public interface Registry

This interface models a "configuration registry", in which configuration is hierarchically kept.

All accesses to a registry, in the context of a given thread, must be done using a session that was acquired from that registry, according to the following programming model:

 RegisSession session = registry.open();
 try{
   Node root = registry.getRoot();
   ...
 }finally{
   session.close();
 }
 

Author:
yduchesne

Method Summary
 void close()
          Closes this instance.
 Node getRoot()
           
 RegisSession open()
          Opens a session linked to this instance and returns it.
 

Method Detail

getRoot

Node getRoot()
Returns:
the root Node of this instance.

open

RegisSession open()
Opens a session linked to this instance and returns it.

Returns:
a RegisSession.

close

void close()
Closes this instance.



Copyright © 2006 Sapia Open Community, Inc. All Rights Reserved.