In hte following tutorial there are many, lifecycle and behavioural annotations:
http://www.vogella.com/articles/EclipseRCP/article.html#programmingmodel
- @PostConstruct
- @PreDestroy
- @Focus
- @Persist
-
@PersistState
-
@Execute
- @CanExecute
- @GroupUpdates
- @EventTopic
QUESTIONS:
Where can I find a full list of them? Is the there an official documentation?
I supose, that those annotations are from different frameworks (OSGI, Spring, etc.)
Which annotations do come from which framework?
Documentation on the specific annotations is pretty sparse at the moment, so there isn’t a single place that you can go.
@PostConstructand@PreDestroycomes from JSR-250.@Injectand@Namedcome from JSR-330@Persist,@PersistState, and@Focusare annotations specific to the Eclipse4 UI rendering lifecycle.@Execute,@CanExecute,@Optional, and@GroupUpdatesare part of the Eclipse4 core DI story, to help with runtime notification of changes to DIed values or with method invocation in a DI context.@EventTopicand@Preferenceare Eclipse4 DI extensions that can inject values from other provides and allow for notification of changes.@PostContextCreate,@PreSave,@ProcessAdditions, and@ProcessRemovalsare methods called as part of the Workbench Application lifecycle on the lifecycle manager.