You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "wangfeng (JIRA)" <tu...@ws.apache.org> on 2007/07/31 08:55:53 UTC
[jira] Updated: (TUSCANY-1492) Support implemental class not only
interface when get a service
[ https://issues.apache.org/jira/browse/TUSCANY-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
wangfeng updated TUSCANY-1492:
------------------------------
Attachment: TestCase_Calculator.zip
patch.txt
This patch includes two new added files and two modified files.
CglibProxyService.java -- generate the proxy with cglib
ProxyServiceExtensionPoint.java -- dispatch the action to create a proxy,according to the class type
JavaRuntimeModuleActivator.java -- modify the JDKProxyService type to it's interface type of ProxyFactory
ReallySmallRuntimeBuilder.java -- modify the ProxyFactory definition to the class of ProxyServiceExtensionPoint
The testcase includes the calculator sample,and remove all the interface's definition.
> Support implemental class not only interface when get a service
> ---------------------------------------------------------------
>
> Key: TUSCANY-1492
> URL: https://issues.apache.org/jira/browse/TUSCANY-1492
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-0.91
> Environment: JDK1.5.09,winXP
> Reporter: wangfeng
> Priority: Minor
> Fix For: Java-SCA-0.91
>
> Attachments: patch.txt, TestCase_Calculator.zip
>
>
> when we get a service,we always generate a proxy on the service by using the jdk proxy class, so we must provide a interface to get a service.
> I provide a patch to remove the control. This patch not only support the interface,but also support the implemental class when getting a service.when the class isn't a interface,using the cglib to generate a proxy and using jdk proxy when the class is a interface.
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org