This thread is getting a bit hard to follow, i'll try replying to
individual part in separate emails:

On Wed, Dec 9, 2009 at 3:09 PM, Simon Laws <[email protected]> wrote:


>>
>> Some to remove:
>> - all the ones using classloaders
>> - the Client Interface and just add the getService method to Node
>
> Can we return an SCA client factory instance for the node
>

Something like that seems like it would be nice, but the SCAClient API
dosn't make it work so well as the getService method isn't on an
interface its on the abstract class SCAClientFactory so we'd have to
make Node a subclass of SCAClientFactory. Or do you mean have a getter
on Node for an SCAClientFactory? That seems a bit better. Another
option would be to remove getService entirely and just always use the
SCAClient API, so:

SCAClientFactory.newInstance(...).getService(...)

instead of

node.getService(...) or node.getSCAClientFactory().getService(...)

Only using the SCAClient API would help reinforce the separation of
client and runtime.

   ...ant

Reply via email to