Skip to content

Instantly share code, notes, and snippets.

@romartin
Created January 15, 2016 20:33
Show Gist options
  • Select an option

  • Save romartin/1759815b2386549a6762 to your computer and use it in GitHub Desktop.

Select an option

Save romartin/1759815b2386549a6762 to your computer and use it in GitHub Desktop.
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