THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Introduce JSR-330, by requiring plugin developer to mark injected fields with standard @Inject and make @Parameter and @Component standard Qualifier.
Costs more writing for plugin developer (these @Inject) without much win other than mark the intent in a standard way (and should change much for maven-plugin-tools)
Code Block | ||||
---|---|---|---|---|
| ||||
/**
* @since <since-text>
* @deprecated <deprecated-text>
*/
@Inject
@Parameter( alias = "myAlias",
property = "aProperty",
defaultValue = "${anExpression}",
readonly = <false|true>
required = <false|true> )
private String parameter;
/**
* @since <since-text>
* @deprecated <deprecated-text>
*/
@Inject
@Component( role = MyComponentExtension.class,
roleHint = "..." )
private MyComponent component;
|