@SuppressWarnings({"rawtypes", "unchecked"}) protected Set findWildcardMatches(ActiveMQDestination key) { return findWildcardMatches(key, true); }
@SuppressWarnings({"rawtypes", "unchecked"}) public Set unsynchronizedGet(ActiveMQDestination key) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); Set answer = new HashSet(destinations.length); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; Object value = unsynchronizedGet(childDestination); if (value instanceof Set) { answer.addAll((Set) value); } else if (value != null) { answer.add(value); } } return answer; } return findWildcardMatches(key); }
@SuppressWarnings({"rawtypes", "unchecked"}) protected Set findWildcardMatches(ActiveMQDestination key) { return findWildcardMatches(key, true); }
@SuppressWarnings({"rawtypes", "unchecked"}) protected Set findWildcardMatches(ActiveMQDestination key) { return findWildcardMatches(key, true); }
@SuppressWarnings({"rawtypes", "unchecked"}) protected Set findWildcardMatches(ActiveMQDestination key) { return findWildcardMatches(key, true); }
@SuppressWarnings({"rawtypes", "unchecked"}) public Set unsynchronizedGet(ActiveMQDestination key) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); Set answer = new HashSet(destinations.length); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; Object value = unsynchronizedGet(childDestination); if (value instanceof Set) { answer.addAll((Set) value); } else if (value != null) { answer.add(value); } } return answer; } return findWildcardMatches(key); }
@SuppressWarnings({"rawtypes", "unchecked"}) public Set unsynchronizedGet(ActiveMQDestination key) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); Set answer = new HashSet(destinations.length); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; Object value = unsynchronizedGet(childDestination); if (value instanceof Set) { answer.addAll((Set) value); } else if (value != null) { answer.add(value); } } return answer; } return findWildcardMatches(key); }
@SuppressWarnings({"rawtypes", "unchecked"}) public Set unsynchronizedGet(ActiveMQDestination key) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); Set answer = new HashSet(destinations.length); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; Object value = unsynchronizedGet(childDestination); if (value instanceof Set) { answer.addAll((Set) value); } else if (value != null) { answer.add(value); } } return answer; } return findWildcardMatches(key); }
/** * Looks up the value(s) matching the given Destination key. For simple * destinations this is typically a List of one single value, for wildcards * or composite destinations this will typically be a List of matching * values. * * @param key the destination to lookup * @return a List of matching values or an empty list if there are no * matching values. */ public synchronized Set get(ActiveMQDestination key) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); Set answer = new HashSet(destinations.length); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; Object value = get(childDestination); if (value instanceof Set) { answer.addAll((Set)value); } else if (value != null) { answer.add(value); } } return answer; } return findWildcardMatches(key); }