Author: ritchiem
Date: Wed Apr 16 09:29:07 2008
New Revision: 648740
URL: http://svn.apache.org/viewvc?rev=648740&view=rev
Log:
QPID-886 : In order to allow the test to be written that highlights the failure
we need to be able to provide a Config object not a file. So made the method
public that reads the file and added constructor to use the Config object.
Modified:
incubator/qpid/branches/M2.1/java/broker/src/main/java/org/apache/qpid/server/registry/ConfigurationFileApplicationRegistry.java
Modified:
incubator/qpid/branches/M2.1/java/broker/src/main/java/org/apache/qpid/server/registry/ConfigurationFileApplicationRegistry.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/M2.1/java/broker/src/main/java/org/apache/qpid/server/registry/ConfigurationFileApplicationRegistry.java?rev=648740&r1=648739&r2=648740&view=diff
==============================================================================
---
incubator/qpid/branches/M2.1/java/broker/src/main/java/org/apache/qpid/server/registry/ConfigurationFileApplicationRegistry.java
(original)
+++
incubator/qpid/branches/M2.1/java/broker/src/main/java/org/apache/qpid/server/registry/ConfigurationFileApplicationRegistry.java
Wed Apr 16 09:29:07 2008
@@ -61,6 +61,11 @@
private PluginManager _pluginManager;
+ public ConfigurationFileApplicationRegistry(Configuration configuration)
+ {
+ super(configuration);
+ }
+
public ConfigurationFileApplicationRegistry(File configurationURL) throws
ConfigurationException
{
super(config(configurationURL));
@@ -76,7 +81,7 @@
}
}
- private static final Configuration config(File url) throws
ConfigurationException
+ public static final Configuration config(File url) throws
ConfigurationException
{
// We have to override the interpolate methods so that
// interpolation takes place accross the entirety of the