Created
January 15, 2016 20:33
-
-
Save romartin/1759815b2386549a6762 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The POJO: | |
| ********** | |
| @Definition ( id ="startEvent" ) | |
| public class StartEvent .... { | |
| @Property NameProperty nameProperty; | |
| .... etc | |
| } | |
| The processed pojo at compile time: | |
| ************************************ | |
| @Generated("..") | |
| @Dependent | |
| @Named("...") | |
| @Definition ( id ="startEvent" ) | |
| public class StartEventImpl .... extends StartEvent implements RuntimeDefinition { | |
| @Inject | |
| NameProperty nameProperty; | |
| private List<Property> properties; | |
| @PostCOnstruct | |
| public void init() { | |
| properties.add(nameProperty); | |
| } | |
| public List<Proerty> getProperties() { | |
| ... | |
| } | |
| .... etc | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment