public List < Destination > getDestinations ( ) { List < Destination > destinations = new ArrayList < Destination > ( ) ; Iterator < JMSDestination > destinationIterator = jmsDestinations . values ( ) . iterator ( ) ; while ( destinationIterator . hasNext ( ) ) { destinations . add ( destinationIterator . next ( ) . destination ) ; } return destinations ; }
Provides a listing of the currently available destinations