summaryrefslogtreecommitdiff
path: root/content/xdocs/Qpid Design - Application Registry.html
diff options
context:
space:
mode:
Diffstat (limited to 'content/xdocs/Qpid Design - Application Registry.html')
-rwxr-xr-xcontent/xdocs/Qpid Design - Application Registry.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/content/xdocs/Qpid Design - Application Registry.html b/content/xdocs/Qpid Design - Application Registry.html
new file mode 100755
index 0000000000..56cf5a2062
--- /dev/null
+++ b/content/xdocs/Qpid Design - Application Registry.html
@@ -0,0 +1,52 @@
+<html>
+ <head>
+ <title>Apache Qpid : Qpid Design - Application Registry</title>
+ <link rel="stylesheet" href="styles/site.css" type="text/css" />
+ <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ </head>
+
+ <body>
+ <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+ <tr>
+ <td valign="top" class="pagebody">
+ <div class="pageheader">
+ <span class="pagetitle">
+ Apache Qpid : Qpid Design - Application Registry
+ </span>
+ </div>
+ <div class="pagesubheading">
+ This page last changed on Oct 19, 2006 by <font color="#0050B2">rgreig</font>.
+ </div>
+
+ <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="Qpid Design - Configuration.html#QpidDesign-Configuration-ConfiguredObjects" title="ConfiguredObjects on Qpid Design - Configuration">Configured Objects</a></li>
+ <li>the raw <a href="Qpid Design - Configuration.html#QpidDesign-Configuration-Configuration" title="Configuration on Qpid Design - 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>
+
+
+ </td>
+ </tr>
+ </table>
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+ </tr>
+ <tr>
+ <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file