Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Yet another nag note ... and, I mean it this time!

Am 24.05.2012 14:57, schrieb Thomas Hallgren:
> One could very well argue that an optional non-greedy dependency is completely useless and doesn't fulfill any other 
> purpose but documentation.

We have a bunch of bundles in place that have optional non-greedy
dependencies to allow flexibility at runtime. For example, Logback can
be configured via API, XML or Groovy. Groovy as well as XML
configuration require additional dependencies. Imaging all those
dependencies were greedy.

BTW, they need to be optional for the bundles to properly resolve if the
dependencies aren't there. They need to be declared to allow the bundle
class loader to load them if they are available.


Back to the top