Details
-
Wish
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.0
-
None
-
None
Description
(Sorry, because sending email to hivemind-dev-subscribe@jakarta.apache.org 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.