Hivemind
users,
I have the following
questions I'm hoping you can help me with.
1. Is it possible
for a service to expose multiple, distinct, interfaces? An example is a service
that exposes a 'business interface' (getQuote) and an 'infrastructure' interface
(getQuoteHitCount). Using multiple interfaces allows for exposing only the
necessary methods to the appropriate consumers while still preserving the
singleton semantic.
2. What is the goal
of making 'serviceId' distinct from 'serviceInterface'? For brokering pattern
situations (many unique instances of a common interface like Servlet) I see
value here, but for true singleton services it would be convenient to only have
a dependency on the the interface like so:
getService(BusinessService.class);
I guess as much as
this is second question is a feature request, I would like to solicit rationale
first for the current design.
Thanks!
Naresh Sikha
Senior
Staff, Technology Solutions
Charles
Schwab & Co., Inc.
211 Main Street
SF211MN-07-347
San Francisco, CA 94105-1918
W:
415-667-1286
F: 415-667-9397
E:
[EMAIL PROTECTED]
WARNING:
All email sent to this address will be received by the Charles Schwab & Co.,
Inc. corporate email system and is subject to archival and review by someone
other than the recipient.
