DefaultContributionFactory does not directly implement ContributionFactory
interface
------------------------------------------------------------------------------------
Key: TUSCANY-3086
URL: https://issues.apache.org/jira/browse/TUSCANY-3086
Project: Tuscany
Issue Type: Bug
Components: Java SCA Core Runtime
Affects Versions: Java-SCA-1.5
Reporter: Andrew Mak
I have some code that creates a ContributionMetadataProcessor by passing in an
instance of a DefaultContributionFactory to the constructor; this works in 1.4.
In 1.5, I see that the constructor for ContributionMetadataProcessor has
changed to take in a ModelFactoryExtensionPoint instead of a
ContributionFactory. So I changed my code to pass in a
ModelFactoryExtensionPoint that has the DefaultContributionFactory registered
in it.
The problem comes when the ContributionMetadataProcessor tries to retrieve a
factory using the ContributionFactory interface as the lookup. It cannot find
a suitable factory because DefaultContributionFactory does not directly
implement the ContributionFactory interface, hence it is registered in the
factory as a ContributionFactoryImpl (the superclass).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.