laeubi commented on PR #290:
URL: https://github.com/apache/felix-dev/pull/290#issuecomment-1903883927

   >  as the API really requires an implementation. An API bundle alone is 
useless. 
   
   I think this statement is wrong. An API *never* requires an implementation 
it only defines a _contract_. Also claiming that an API alone is useless is not 
true, because services can be _optional_ in OSGi.
   
   In fact only the consumer of the API can know if an _implementation_ is 
**mandatory** or **optional** for its function, for example a Web UI for 
configuring components using Http Whiteboard does not **require** either _Http 
Whiteboard_ Implementation nor _Config Admin Service_ it will just do nothing 
then so it could make sense to make it **mandatory** so the bundle will supply 
function and the management agent of the system can make the user aware.
   
   On the other hand there can be components that just would add additional 
functions (e.g. SCR) if a ConfigAdmin is there, still they will need to 
implement the API and use it without not working at all without it, they will 
still provide their main purpose.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@felix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to