Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/net4j/FailOverStrategyInjector.java')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/net4j/FailOverStrategyInjector.java17
1 files changed, 13 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/net4j/FailOverStrategyInjector.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/net4j/FailOverStrategyInjector.java
index d647246a3b..4f87b4a266 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/net4j/FailOverStrategyInjector.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/net4j/FailOverStrategyInjector.java
@@ -10,6 +10,8 @@
**************************************************************************/
package org.eclipse.emf.internal.cdo.net4j;
+import org.eclipse.emf.cdo.messages.Messages;
+
import org.eclipse.net4j.connector.IConnector;
import org.eclipse.net4j.signal.failover.NOOPFailOverStrategy;
import org.eclipse.net4j.util.StringUtil;
@@ -18,12 +20,16 @@ import org.eclipse.net4j.util.container.IManagedContainer;
import org.eclipse.spi.net4j.ConnectorFactory;
+import java.text.MessageFormat;
+
/**
* @author Eike Stepper
*/
public class FailOverStrategyInjector implements IElementProcessor
{
- private static final String SCHEME_SEPARATOR = "://";
+ private static final String INVALID_URI_MESSAGE = Messages.getString("InvalidURIException.0"); //$NON-NLS-1$
+
+ private static final String SCHEME_SEPARATOR = "://"; //$NON-NLS-1$
public FailOverStrategyInjector()
{
@@ -46,19 +52,22 @@ public class FailOverStrategyInjector implements IElementProcessor
int pos = description.indexOf(SCHEME_SEPARATOR);
if (pos == -1)
{
- throw new IllegalArgumentException("Invalid URI: " + description);
+ throw new IllegalArgumentException(MessageFormat.format(INVALID_URI_MESSAGE, description,
+ Messages.getString("FailOverStrategyInjector.0"))); //$NON-NLS-1$
}
String factoryType = description.substring(0, pos);
if (StringUtil.isEmpty(factoryType))
{
- throw new IllegalArgumentException("Invalid URI: " + description);
+ throw new IllegalArgumentException(MessageFormat.format(INVALID_URI_MESSAGE, description,
+ Messages.getString("FailOverStrategyInjector.1"))); //$NON-NLS-1$
}
String connectorDescription = description.substring(pos + SCHEME_SEPARATOR.length());
if (StringUtil.isEmpty(connectorDescription))
{
- throw new IllegalArgumentException("Invalid URI: " + description);
+ throw new IllegalArgumentException(MessageFormat.format(INVALID_URI_MESSAGE, description,
+ Messages.getString("FailOverStrategyInjector.2"))); //$NON-NLS-1$
}
pos = connectorDescription.indexOf('?');

Back to the top