// Are we not bridging temp destinations?
if( destination.isTemporary() && !bridgeTempDestinations )
return false;
DestinationFilter filter=DestinationFilter.parseFilter(destination);
ActiveMQDestination[] dests = excludedDestinations;
if(dests!=null&&dests.length>0){
for(int i=0;i<dests.length;i++){
ActiveMQDestination match=dests[i];
if(match!=null&&filter.matches(match)){
return false;
}
}
}
dests = dynamicallyIncludedDestinations;
if(dests!=null&&dests.length>0){
for(int i=0;i<dests.length;i++){
ActiveMQDestination match=dests[i];
if(match!=null&&filter.matches(match)){
return true;
}
}
return false;
}