X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fadapters%2FConstructorConfiguration.java;h=676a88fba9a9fe927d2309007abad2ed398be422;hb=055163d496fa0b21de7c538231a3e558ea70355f;hp=2725d0338fcae9026cf8f02754da8c2e5453f6f8;hpb=7273d083a2f03cd3d2061d3c6628a46b679e718b;p=utils
diff --git a/system/general/src/main/java/org/wamblee/system/adapters/ConstructorConfiguration.java b/system/general/src/main/java/org/wamblee/system/adapters/ConstructorConfiguration.java
index 2725d033..676a88fb 100644
--- a/system/general/src/main/java/org/wamblee/system/adapters/ConstructorConfiguration.java
+++ b/system/general/src/main/java/org/wamblee/system/adapters/ConstructorConfiguration.java
@@ -28,6 +28,22 @@ import org.wamblee.system.core.RequiredInterface;
import org.wamblee.system.core.Scope;
import org.wamblee.system.core.SystemAssemblyException;
+/**
+ * Class that allows configuration of the constructor to use.
+ *
+ * In particular, it provides:
+ *
+ * - Selection of a constructor using explicit selection
+ * {@link #select(Class...)} or using the most greedy constructor
+ * {@link #greedy()}.
+ *
+ * -
+ * Selection of methods to invoke to inject other objects into the object.
+ *
+ * - Selection of fields to set.
+ *
+ *
+ */
public class ConstructorConfiguration {
private Class _class;
private Constructor> _constructor;
@@ -35,9 +51,8 @@ public class ConstructorConfiguration {
private boolean _publicOnly;
/**
- * Constructs the configuration. By default no constructor is selected and
- * one of {@link #select(Class...)} or
- * {@link #greedy()} must be called.
+ * Constructs the configuration. By default the public constructor with the
+ * most arguments will be used.
* @param aClass Class to construct.
*/
public ConstructorConfiguration(Class aClass) {
@@ -48,7 +63,7 @@ public class ConstructorConfiguration {
/**
* Sets whether or no non public constructors are also considered.
- * Reset the choice of a constructor.
+ * Reset the choice of a constructor to its default.
* @param aNonPublic
* @return
*/