mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3894 - remove requirement for destination property enforced by spring - for a default entry there is no need for a destination
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1415633 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
915d66dec5
commit
fb35648f80
|
@ -72,18 +72,6 @@ public abstract class DestinationMapEntry<T> implements Comparable<T> {
|
||||||
this.destination = destination;
|
this.destination = destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
* @org.apache.xbean.InitMethod
|
|
||||||
*/
|
|
||||||
@PostConstruct
|
|
||||||
public void afterPropertiesSet() throws Exception {
|
|
||||||
if (destination == null) {
|
|
||||||
throw new IllegalArgumentException("You must specify the 'destination' property");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Comparable<T> getValue() {
|
public Comparable<T> getValue() {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue