incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1030768 - /incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ComponentNameAlreadyInUseException.java
Date Wed, 03 Nov 2010 23:58:50 GMT
Author: not
Date: Wed Nov  3 23:58:50 2010
New Revision: 1030768

URL: http://svn.apache.org/viewvc?rev=1030768&view=rev
Log:
ARIES-468 Did not mean to commit the previous change since it isn't valid, and also not related
to ARIES-468. I was sure I didn't select to commit it, oh well.

Modified:
    incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ComponentNameAlreadyInUseException.java

Modified: incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ComponentNameAlreadyInUseException.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ComponentNameAlreadyInUseException.java?rev=1030768&r1=1030767&r2=1030768&view=diff
==============================================================================
--- incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ComponentNameAlreadyInUseException.java
(original)
+++ incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ComponentNameAlreadyInUseException.java
Wed Nov  3 23:58:50 2010
@@ -16,24 +16,18 @@
  */
 package org.apache.aries.blueprint;
 
-import org.apache.aries.util.nls.MessageUtil;
 
 public class ComponentNameAlreadyInUseException extends RuntimeException {
+  private String conflictingName;
 
-    private String conflictingName;
-    private String message;
+  public ComponentNameAlreadyInUseException(String conflictingName) {
+      this.conflictingName = conflictingName;
+  }
+  
+  public String getMessage() {
+      return "Name '" + this.conflictingName + "' is already in use by a registered component";
+  }
 
-    public ComponentNameAlreadyInUseException(String conflictingName) {
-        this.conflictingName = conflictingName;
-        message = MessageUtil.createMessageUtil(this.getClass(), "org.apache.aries.blueprint.nls.BlueprintMessages")
-                                    .getMessage("duplicate.component", conflictingName);
-    }
-    
-    public String getMessage() {
-        return message;
-    }
-
-    public String getConflictingName() {
-        return this.conflictingName;
-    }
-}
+  public String getConflictingName() {
+      return this.conflictingName;
+  }}



Mime
View raw message