diff options
author | Martin Ritchie <ritchiem@apache.org> | 2010-06-14 12:35:51 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2010-06-14 12:35:51 +0000 |
commit | ad34dd26cdd0aacbe4850712d4ff41a4c8229a81 (patch) | |
tree | 4732922af62a6bc5cb17f43470297f643d064ef5 /java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHostImpl.java | |
parent | c14e5d4b2a3bdcd45e4af44c3a641ad391873f4e (diff) | |
download | qpid-python-ad34dd26cdd0aacbe4850712d4ff41a4c8229a81.tar.gz |
QPID-2625 : Moved Logging generation to moudule.xml to allow plugins to utilise the same functionality.
To enable generation for your plugin just add :
<target name="precompile" depends="gen_logging"/>
to your build.xml
Logging is now defined in a X_logmessage.properties file. Where X is used to make the XMessages.java class.
Also updated all existing usages to remove the 3 digit prefix that wasn't adding any info.
Updated ConfigStore and Transaction Log to use named properties rather than numeric values.
If we are going to continue with <3 alpha>-<4 numeric> ids for messages then we'll need to have some registry to prevent
clases. Perhaps it is simpler to relax this and require a plugin creator to provide a unique identifier for their messages.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954432 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHostImpl.java')
-rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHostImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHostImpl.java b/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHostImpl.java index 5ea4ade559..fcb06f56bf 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHostImpl.java +++ b/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHostImpl.java @@ -198,7 +198,7 @@ public class VirtualHostImpl implements VirtualHost _id = _appRegistry.getConfigStore().createId(); - CurrentActor.get().message(VirtualHostMessages.VHT_CREATED(_name)); + CurrentActor.get().message(VirtualHostMessages.CREATED(_name)); if (_name == null || _name.length() == 0) { @@ -596,7 +596,7 @@ public class VirtualHostImpl implements VirtualHost } } - CurrentActor.get().message(VirtualHostMessages.VHT_CLOSED()); + CurrentActor.get().message(VirtualHostMessages.CLOSED()); } public ManagedObject getBrokerMBean() |