felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Offermans <marcel.offerm...@luminis.eu>
Subject Re: Make DependencyManager API more fluent?
Date Wed, 12 Nov 2014 22:36:29 GMT
Hello Christian,

> On 11 Nov 2014, at 9:22 am, Christian Schneider <chris@die-schneider.net> wrote:
> About auto adding. How about this:
> Inside component() we add the component to a separate list of pending components in dependency
> Then after init we call a method in the manager to finally add all pending components
into the active structure.
> In that method we could then also convert from the class with the new syntax to the existing
class. So the changes for the new syntax would have
> minimal impact to the rest of the code.

The problem with this approach is that the API can be used outside of the init method as well,
so I don’t like adding code that only works in a specific scenario.

Greetings, Marcel
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message