hlship 2004/06/09 07:52:57
Modified: framework/src/java/org/apache/hivemind
HiveMindMessages.properties HiveMind.java
Log:
Add MessageFormatter class to make it easier for each package to have its own
set of messages.
Revision Changes Path
1.15 +1 -8
jakarta-hivemind/framework/src/java/org/apache/hivemind/HiveMindMessages.properties
Index: HiveMindMessages.properties
===================================================================
RCS file:
/home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/HiveMindMessages.properties,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- HiveMindMessages.properties 19 May 2004 02:30:52 -0000 1.14
+++ HiveMindMessages.properties 9 Jun 2004 14:52:57 -0000 1.15
@@ -1,5 +1,3 @@
-
-# $Id$
#
# Copyright 2004 The Apache Software Foundation
#
@@ -181,12 +179,6 @@
service.unable-to-initialize-service=Unable to initialize service {0} (by
invoking method {1} on {2}, at {3}): {4}
-RemoteExceptionCoordinator.method-while-locked=RemoteExceptionCoordinator
method {0} was invoked during a notification.
-
-NameLookup.unable-to-lookup=Unable to lookup ''{0}'' in JNDI context {1}.
-NameLookup.no-object=Lookup of ''{0}'' resulted in null (expected instance
of {1}).
-NameLookup.wrong-type=JNDI object ''{0}'' ({1}) is not assignable to {2}.
-
BaseEJBProxy.result-not-usable=Remote stub {0} from home interface ''{1}''
({2}) does not implement the EJB remote interface {3}.
EventLinkImpl.unable-to-introspect-class=Unable to introspect {0} (at {1}):
{2}
@@ -233,3 +225,4 @@
methodmatch.missing-name-pattern=Method pattern ''{0}'' does not contain a
method name.
methodmatch.invalid-name-pattern=Method pattern ''{0}'' contains an invalid
method name pattern.
methodmatch.invalid-parameters-pattern=Method pattern ''{0}'' contains an
invalid parameters pattern.
+
1.8 +2 -14
jakarta-hivemind/framework/src/java/org/apache/hivemind/HiveMind.java
Index: HiveMind.java
===================================================================
RCS file:
/home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/HiveMind.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- HiveMind.java 18 May 2004 15:34:00 -0000 1.7
+++ HiveMind.java 9 Jun 2004 14:52:57 -0000 1.8
@@ -27,6 +27,7 @@
import org.apache.commons.logging.LogFactory;
import org.apache.hivemind.internal.Module;
import org.apache.hivemind.order.Orderer;
+import org.apache.hivemind.util.IdUtils;
/**
* Static utility class for HiveMind.
@@ -129,19 +130,6 @@
public static ApplicationRuntimeException
createRegistryShutdownException()
{
return new
ApplicationRuntimeException(getMessage("impl.registry-shutdown"));
- }
-
- /**
- * Returns a fully qualfied id. If the id contains a '.', then it
- * is returned unchanged. Otherwise, the module's id is prefixed (with
a
- * seperator '.') and returned;
- */
- public static String qualify(String moduleId, String id)
- {
- if (id.indexOf('.') > 0)
- return id;
-
- return moduleId + "." + id;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]