Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-1.5
-
None
Description
The following exception is thrown when trying to get a WidgetImplementationFactory from the ModelFactoryExtensionPoint:
Caused by: java.lang.NoSuchMethodException: org.apache.tuscany.sca.implementation.widget.WidgetImplementationFactory.newInstance()
at java.lang.Class.throwNoSuchMethodException(Class.java:283)
at java.lang.Class.getMethod(Class.java:825)
at org.apache.tuscany.sca.extensibility.ServiceDiscovery.newFactoryClassInstance(ServiceDiscovery.java:165)
at org.apache.tuscany.sca.contribution.DefaultModelFactoryExtensionPoint.getFactory(DefaultModelFactoryExtensionPoint.java:118)
I tried newing a WidgetImplementationFactory myself and then adding it the ModelFactoryExtensionPoint. However, the factory does not appear to get cached (seems to be due to the fact that WidgetImplementationFactory does not implement any interface and extends directly from Object)