Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
Description
Perhaps "autoconnect" to indicate that this parameter should default to the corresponding property of its container.
@Parameter(required=true, autoconnect=true)
private String _value;
would save from having to write:
@Inject
private ComponentDefaultProvider _defaultProvider;
Object defaultValue()
{
return _defaultProvider.defaultBinding("value", _resources);
}