Hi Andreas
Since you added the second init method, WDYT about this issue?
I noticed that we have two different init methods for Synapse mediators:
- One is defined by the optional ManagedLifecycle interface with the
following signature:
void init(SynapseEnvironment se)
- The other is defined by AbstractMediator with the following signature:
void init(ConfigurationContext cc)
Is there any particular reason for this? It should be noted that the
ConfigurationContext can be obtained from the SynapseEnvironment by
casting it to Axis2SynapseEnvironment. Therefore I think that the
second method should be eliminated. WDYT?
As I remember this was to accommodate endpoints that required access to
the ConfigurationContext to operate in clustered environments, but which
could be defined anonymously within the scope of sequences. (See
AbstractEndpoint#init(cc))
If this could be safely removed, I have no objection for the removal of
the method from the AbstractMediator
cheers
asankha
--
Asankha C. Perera
http://adroitlogic.org
http://esbmagic.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]