qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Qpid > Qpid Design - Application Registry
Date Wed, 02 Sep 2009 13:46:00 GMT
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=qpid&amp;forWysiwyg=true"
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><s>Qpid Design - Application Registry</s></h2>
     <h4>Page <b>removed</b> by             <a href="http://cwiki.apache.org/confluence/display/~aidan">Aidan
     <div class="notificationGreySide">
         <p>The Application Registry is a more sophisticated version of the widely used
singleton pattern. It allows the registration of services with a central component that manages
the lifecycle of those services.</p>

<h4><a name="QpidDesign-ApplicationRegistry-IApplicationRegistry"></a>IApplicationRegistry</h4>

<p>The interface <tt>IApplicationRegistry</tt> provides accessors for the
	<li><a href="/confluence/display/qpid/Qpid+Design+-+Configuration#QpidDesign-Configuration-ConfiguredObjects">Configured
	<li>the raw <a href="/confluence/display/qpid/Qpid+Design+-+Configuration#QpidDesign-Configuration-Configuration">Configuration</a></li>
	<li>various services such as the queue registry and exchange registry</li>

<h4><a name="QpidDesign-ApplicationRegistry-ApplicationRegistry"></a>ApplicationRegistry</h4>

<p>The abstract class <tt>ApplicationRegistry</tt> is a partial implementation
of <tt>IApplicationRegistry</tt> that provides an implementation of the configured
object cache as well as providing singleton access to the concrete application registry.</p>

<p>Subclasses should instantiate the appropriate services in order to provide access
to them. Initialisation of these must be done in the <tt>initialise</tt> method
so that those services can use the <tt>ApplicationRegistry</tt> themselves - attempting
to initialise services in the constructor can result in <tt>NullPointerExceptions</tt>
if they use the registry.</p>

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org

View raw message