incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Incubator Wiki] Update of "Synapse/InProgress/RegistryAccessThoughts" by PaulFremantle
Date Thu, 29 Jun 2006 13:02:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Incubator Wiki" for change notification.

The following page has been changed by PaulFremantle:
http://wiki.apache.org/incubator/Synapse/InProgress/RegistryAccessThoughts

New page:
First pass design: There are exactly two registries defined. If we need more later we will
refactor.

The core "in-memory" Registry is basically defined by a hashtable. If something is not found
there then Synapse automatically looks up the key in the other registry. The other registry
is defined by an interface and you can configure the provider using the following XML syntax:

{{{
<syn:registry provider="o.a.s.r.HTTPRegistry">
  <property name="prop-for-HTTPRegistry" value="...">
</syn:registry>
}}}

The core in-memory registry is actually the SynapseEnvironment properties model. The other
registry is just a mapping from keys (strings) to XML fragments (OMNode).  

{{{
SynapseEnvironment {
   ...
   Object getProperty(String name);
   ...
   XMLRegistry getXMLRegistry();
   ...
}
}}}

{{{
public interface XMLRegistry {
  OMNode lookup (String key);
  OMNode lookupIfModified (String key, long since);
  void insert (key, OMNode);
}}}

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message