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
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=qpid&amp;forWysiwyg=true"
type="text/css">
    </head>
<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
Skinner</a>
    </h4>
     <br/>
     <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
following:</p>
<ul>
	<li><a href="/confluence/display/qpid/Qpid+Design+-+Configuration#QpidDesign-Configuration-ConfiguredObjects">Configured
Objects</a></li>
	<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>
</ul>


<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>
     </div>
</div>
</div>
</div>
</div>
</body>
</html>

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


Mime
View raw message