[
https://issues.apache.org/jira/browse/SYNAPSE-426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
indika priyantha kumara resolved SYNAPSE-426.
---------------------------------------------
Resolution: Fixed
Fix Version/s: NIGHTLY
Thanks Senaka ,Applied your patch
Thanks
Indika
> Class mediator property setters should not have constrained ordering
> ---------------------------------------------------------------------
>
> Key: SYNAPSE-426
> URL: https://issues.apache.org/jira/browse/SYNAPSE-426
> Project: Synapse
> Issue Type: Bug
> Components: Core
> Reporter: Senaka Fernando
> Assignee: indika priyantha kumara
> Fix For: NIGHTLY
>
> Attachments: SYNAPSE-426.patch.txt
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> When we create a class that implements a Class Mediator in Synapse, we need
> to have setter methods corresponding to the Class Mediator properties we set.
> Also there can be situations where class mediator properties can accept both
> XML and non-XML data. This can be addressed by having overloaded methods in
> the implementing class. However, according to the current implementation the
> overloaded methods need to have a defined constrained ordering. However,
> typically an implementor should have the freedom to select his/her preferred
> ordering.
> That means,
> class A implements mediator {
> setB(OMElemet c)
> {
> }
> setB(String c)
> {
> }
> mediate() { }
> }
> as well as
> class A implements mediator {
> setB(String c)
> {
> }
> mediate() { }
> setB(OMElemet c)
> {
> }
> }
> should be valid. Unfortunately, according to the current implementation they
> are not. An exception is thrown while starting Synapse as a result.
> The attached patch solves this issue.
> Regards,
> Senaka
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]