Module-system requirements

Tim Boudreau niftiness at gmail.com
Wed Mar 11 19:53:20 UTC 2015


>
> If we're looking to extend this into the domain of Java EE annotations
>> (for example), we'd also have to add method and field annotations to the
>> list.  And SE 8 type annotations might add some strange color to this as
>> well.
>>
>
> Why do that when packaging a module and not when you install a module ?
>
> I really think we need a way to do some actions when modules are installed
> (and before being transformed on an image),
> either some global action on all modules like crawling for annotations
> or on the module that contains the code that does the action
> (or maybe both).
>

I think Mark's "annotation digest" proposal covers that.

"Crawling for annotations" is kind of pathological - I know people are used
to it, but it's also the worst possible way to solve the problem of dynamic
discovery.  So something that solves the reason people *want* to crawl for
annotations, rather than necessarily supporting the crawling, is the way to
go.

-Tim


More information about the jpms-spec-experts mailing list