You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Carsten Ziegeler <cz...@apache.org> on 2007/12/05 10:18:54 UTC
Re: [maven-scr-plugin] Autogenerated binding methods
Felix Meschberger wrote:
> Hi all,
>
> The maven-scr-plugin is able to automatically generate bind/unbind
> methods for for singleton references of DS components if such methods do
> not exist. Currently, these methods are not generated for abstract
> descriptors (declaring the @scr.component abstract="true").
>
> The consequence of this behaviour is, that the any fields of the
> abstract base class must be defined protected such that the bind/undinb
> methods to be created on the inheriting concrete class may be able to
> access the fields.
>
> I think this leads to improper API leaking and should not be done.
> Rather the bind/unbind methods should also be created for abstract
> components.
>
> WDYT ?
>
Ups, yes, definitly - I thought I fixed this for the latest release. Hmpf.
I'll take care of this as well.
PS: And it seems that we have enough changes then for a new release :)
Carsten
--
Carsten Ziegeler
cziegeler@apache.org