--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Monday, June 15, 2009 12:59 AM
To: <[email protected]>
Subject: Re: svn commit: r783578 - in /tuscany/java/sca/modules/node-impl/src: main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java

On Fri, Jun 12, 2009 at 4:45 PM, Raymond Feng<[email protected]> wrote:
Can you point to me where the method is used in your code? I would like to
understand the use case.


I want to get the endpoint services in the node. I don't understand
why you don't seem to like that?

I'm keen on not mixing too many functions on the Node interface as it is used as an API/SPI today. I understand the management function may require the list of endpoints that are published by a given node, but it could be provided via a separate layer.

As the Node has a
getService(serviceName) method that throws a serviceName does not
exist exception then its programming 101 to also have a way to get the
available serviceNames isn't it?

Not really. For example, ClassLoader.loadClass(String className) which may throw ClassNotFoundException but there is no API for ClassLoader.getClasses().


...ant

Reply via email to