Removed getName from AbstractEndpoint.

This commit is contained in:
Mark Fisher
2008-10-02 19:44:57 +00:00
parent 4c02dd0605
commit c4f61646f7
3 changed files with 3 additions and 10 deletions

View File

@@ -52,13 +52,6 @@ public abstract class AbstractEndpoint implements MessageEndpoint, TaskScheduler
private final MessageChannelTemplate channelTemplate = new MessageChannelTemplate();
/**
* Return the name of this endpoint.
*/
public String getName() {
return this.name;
}
public void setBeanName(String name) {
this.name = name;
}
@@ -101,7 +94,7 @@ public abstract class AbstractEndpoint implements MessageEndpoint, TaskScheduler
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
}
throw new ConfigurationException("failed to initialize endpoint '" + this.getName() + "'", e);
throw new ConfigurationException("failed to initialize endpoint '" + this + "'", e);
}
}

View File

@@ -74,7 +74,7 @@ public abstract class AbstractMessageHandlingEndpoint extends AbstractMessageCon
Object result = this.handle(message);
if (result == null) {
if (this.requiresReply) {
throw new MessageHandlingException(message, "endpoint '" + this.getName()
throw new MessageHandlingException(message, "endpoint '" + this
+ "' requires a reply, but no reply was received");
}
return;

View File

@@ -65,7 +65,7 @@ public class ServiceActivatorEndpoint extends AbstractMessageHandlingEndpoint {
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
}
throw new MessageHandlingException(message, "failure occurred in endpoint '" + this.getName() + "'", e);
throw new MessageHandlingException(message, "failure occurred in endpoint '" + this + "'", e);
}
}