aboutsummaryrefslogtreecommitdiff
path: root/website/features/Constructor.html
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-11-17 20:26:58 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-11-17 20:26:58 +0100
commitef8769d3180b2c6de91a64f69dfa23a2e6e449b9 (patch)
treedff0f1f3dd0221041afb45e7f1f50d7bddec3a23 /website/features/Constructor.html
parent58851b4c6e96a51d1ac298c7ed85efac6ffe8335 (diff)
downloadlombok-ef8769d3180b2c6de91a64f69dfa23a2e6e449b9.tar.gz
lombok-ef8769d3180b2c6de91a64f69dfa23a2e6e449b9.tar.bz2
lombok-ef8769d3180b2c6de91a64f69dfa23a2e6e449b9.zip
Added all documentation for the onX feature and updated changelog.
Now to actually write the feature (Well, rescue it from the onX-removal tag).
Diffstat (limited to 'website/features/Constructor.html')
-rw-r--r--website/features/Constructor.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/website/features/Constructor.html b/website/features/Constructor.html
index 48c913b4..c60d915f 100644
--- a/website/features/Constructor.html
+++ b/website/features/Constructor.html
@@ -35,6 +35,8 @@
Such a static factory method will infer generics, unlike a normal constructor. This means your API users get write <code>MapEntry.of("foo", 5)</code> instead of the much longer
<code>new MapEntry&lt;String, Integer&gt;("foo", 5)</code>.
</p><p>
+ To put annotations on the generated constructor, you can use <code>onConstructor={@AnnotationsHere}</code>. For more details see the documentation on the <a href="onX.html">onX</a> feature.
+ </p><p>
Static fields are skipped by these annotations. Also, a <code>@java.beans.ConstructorProperties</code> annotation is added for all constructors with at least 1 argument,
which allows bean editor tools to call the generated constructors. <code>@ConstructorProperties</code> is now in Java 1.6, which means that if your code is intended for
compilation on Java 1.5, a compiler error will occur. <em>Running</em> on a JVM 1.5 should be no problem (the annotation will be ignored). To suppress the generation of