I did bring up a similar issue in the past... Say my service model changes, and I want to use one class to implement two different service interfaces.
i.e. I want to expose two different interfaces, but back them with a single class. For a stateless service, this wouldn't be a big deal, as 2 objects vs one may not be an issue. For a stateful service, changing the clients of these services to use a common interface could cause a lot of work. Another example would be if I had a version of my system that had a single class implementing two interfaces, and I also had a version that was deployed in large sites that required two separate classes to implement the full functionality for integration reasons... Steve Gibson -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 1:07 PM To: [email protected] Subject: [jira] Commented: (HIVEMIND-39) The ability to specify multiple interfaces of a service The following comment has been added to this issue: Author: James Carman Created: Thu, 5 Aug 2004 10:06 AM Body: I would say that this issue should be closed. --------------------------------------------------------------------- View this comment: http://issues.apache.org/jira/browse/HIVEMIND-39?page=comments#action_37 062 --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/HIVEMIND-39 Here is an overview of the issue: --------------------------------------------------------------------- Key: HIVEMIND-39 Summary: The ability to specify multiple interfaces of a service Type: Wish Status: Open Priority: Minor Project: HiveMind Components: framework Versions: 1.0 Assignee: Howard M. Lewis Ship Reporter: Zhengmao Hu Created: Thu, 5 Aug 2004 7:24 AM Updated: Thu, 5 Aug 2004 10:06 AM Description: (Sorry, because sending email to [EMAIL PROTECTED] can not make me subscribe, so i post it here) Currently, one service can only have one interface specifiled. Inside ProxyBuilder.java, the proxy class built only implements this "major" interface. This behavior is coded as such: public ProxyBuilder(String type, ServicePoint point) { ... _classFab.addInterface(_serviceInterface); ... } public void addServiceMethods(String indirection) { ... Method[] methods = _serviceInterface.getMethods(); for (int i = 0; i < methods.length; i++) ... ... } Because of this behavior, if there is a class: class ServiceABImpl implements ServiceA, ServiceB This class will be wrapped inside a proxy class, but the proxy class can only implement one interface, that makes the usage of this class/service inconvienent. So, there is a wish, wish that more than one interfaces can be specified to one service. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
