[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [sca-j] [JAVA-1] Accessing SCA Services from non-SCA component code - Updated Proposal
Hi Mike, I have read through your latest proposals and
it looks good. I have the following comments. Line
numbers are based on the PDF version of the document. Non-editorial Move of
getService() method to the SCAClientFactory I am not sure that I am a fan of this
change since the SCAClientFactory no longer follows the single responsibility
principle [1] since it does two things, namely builds the SCAClientFactory
instance and looks up services. I realise that this change reduces the number
of classes since it removes the SCAClient interface. This may have been discussed on the last
call that I missed. getService
should not throw NoSuchDomainException Line 1263 & 2573 – 2576: Does
the getService method need to throw a NoSuchDomainException? Surely this will
be checked by the newInstance() call since we always pass the domain URI to the
newInstance() method? By removing this checked exception, the code
that the user writes will be simpler. Should
the protected SCAClientFactory(URI domainURI) constructor throw NoSuchDomainException? I’m not completely clear who will be
calling the SCAClientFactory() protected constructor but… Line 1173 & 1266 – 1268 & 2475
– 2481 - Should we allow the subclass to throw a NoSuchDomain
exception so that it can inform the base class that the URI is invalid? Vendors
must provide implementation of SCAClientFactory class Line 2422: “Vendors can provide” – surely vendors
have to provide an implementation of this abstract class to be able to pass the
conformance tests? Editorial References
to SCAClient interface There are references to the SCAClient
interface in the following lines:
Spelling
mistakes, typos, etc
Thanks, Mark [1] http://en.wikipedia.org/wiki/Single_responsibility_principle From:
Mike Edwards [mailto:mike_edwards@uk.ibm.com]
Unless stated otherwise above:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]