blob: 56cf5a2062902ea99f7412244b94ce82c1f13241 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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>
|