Espen Wiborg created AMQ-7116:
---------------------------------
Summary: Make SimpleDiscoveryAgent.SimpleDiscoveryEvent protected
to allow extension
Key: AMQ-7116
URL: https://issues.apache.org/jira/browse/AMQ-7116
Project: ActiveMQ
Issue Type: Wish
Components: Broker
Reporter: Espen Wiborg
I recently had occasion to write a custom discovery agent that essentially is
SimpleDiscoveryAgent, but with a dynamic set of peers.
I'd normally use MulticastDiscoveryAgent, but that is not possible in this
application for technical reasons involving networking gear, so I thought I'd
extend SimpleDiscoveryAgent and add the necessary bits.
But since SimpleDiscoveryAgent requires that its events be of type
SimpleDiscoveryAgent.SimpleDiscoveryEvent, and that inner class has default
access I had to put my extending agent in the
org.apache.activemq.transport.discovery.simple package as well.
Making the inner class protected would make that hack unnecessary.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)