Comment #3 on issue 1586 by wozza.xing: SLEE 1.1 Extensions: Annotations
http://code.google.com/p/mobicents/issues/detail?id=1586

There are two definite categories of annotations I can identify.

Annotations which are declarative or descriptive i.e they typically replace something in the descriptor xml file. e.g. @CmpField

Annotations which are dependencies i.e the code depends on their values to run and would be looked up. e.g @Tracer, @SbbContext, @ACIF

Declarative annotations will be very specific to the jain slee xml grammar.
Dependency annotations can be described by the javax.annotation.Resource and an optional name or mapped name attribute.

It looks like @ResourceAdaptorObject and @ACIF is both and should be split to a class level declarative annotation and a field level @Resource dependency annotation.

EventHandler would need a initial-event-selector array of initial-event-select.

Also, if the dependency annotations support fields and members, but then when would the member be invoked? before or after setContext? what if you want to use one of these values on setContext or use the context when the dependency is injected.

Btw I have been hanging out for these annotations for years, so I'm quite excited it's finally getting some traction.

Please see http://jcp.org/en/jsr/detail?id=250 for additional information.




Reply via email to