X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fadapters%2FClassConfiguration.java;h=bd5ccbb02bdf8f7dde32cc405c6c18cb93d67b58;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=1c8760bb8ae77fd08c54bfbdbb433b6ef4c72693;hpb=89c06d4d52b46c154128c97d6e758fa1f4fc7a6e;p=utils diff --git a/system/general/src/main/java/org/wamblee/system/adapters/ClassConfiguration.java b/system/general/src/main/java/org/wamblee/system/adapters/ClassConfiguration.java index 1c8760bb..bd5ccbb0 100644 --- a/system/general/src/main/java/org/wamblee/system/adapters/ClassConfiguration.java +++ b/system/general/src/main/java/org/wamblee/system/adapters/ClassConfiguration.java @@ -23,64 +23,46 @@ import org.wamblee.system.core.Scope; import java.util.ArrayList; import java.util.List; - /** - * The class configuration encapsulates the knowledge of how to wrap a - * class as a component. - * + * The class configuration encapsulates the knowledge of how to wrap a class as + * a component. + * * @author Erik Brakkee */ public class ClassConfiguration { - /** - * DOCUMENT ME! - */ private Class _class; - /** - * DOCUMENT ME! - */ private ConstructorConfiguration constructorConfig; - /** - * DOCUMENT ME! - */ private ObjectConfiguration objectConfig; -/** - * Constructs the configuration. By default no constructor is selected and - * one of {@link #select(Class...)} or - * {@link #greedy()} must be called. - * @param aClass Class to construct. - */ + /** + * Constructs the configuration. By default no constructor is selected and + * one of {@link #select(Class...)} or {@link #greedy()} must be called. + * + * @param aClass + * Class to construct. + */ public ClassConfiguration(Class aClass) { - _class = aClass; - constructorConfig = new ConstructorConfiguration(aClass); - objectConfig = new ObjectConfiguration(aClass); + _class = aClass; + constructorConfig = new ConstructorConfiguration(aClass); + objectConfig = new ObjectConfiguration(aClass); } - /** - * DOCUMENT ME! - * - * @return DOCUMENT ME! - */ public ConstructorConfiguration getConstructorConfig() { return constructorConfig; } - /** - * DOCUMENT ME! - * - * @return DOCUMENT ME! - */ public ObjectConfiguration getObjectConfig() { return objectConfig; } /** * Creates the object in the given scope. - * - * @param aScope Scope containing required interfaces for this object. - * + * + * @param aScope + * Scope containing required interfaces for this object. + * * @return object. */ public Object create(Scope aScope) { @@ -89,19 +71,16 @@ public class ClassConfiguration { /** * Injects required interfaces through the setters - * - * @param aScope Scope in which injection takes place. - * @param aObject Object to inject into. + * + * @param aScope + * Scope in which injection takes place. + * @param aObject + * Object to inject into. */ public void inject(Scope aScope, Object aObject) { objectConfig.inject(aScope, aObject); } - /** - * DOCUMENT ME! - * - * @return DOCUMENT ME! - */ public List getProvidedInterfaces() { List result = new ArrayList(); result.add(new DefaultProvidedInterface("provided", _class)); @@ -109,11 +88,6 @@ public class ClassConfiguration { return result; } - /** - * DOCUMENT ME! - * - * @return DOCUMENT ME! - */ public List getRequiredInterfaces() { List result = new ArrayList(); result.addAll(constructorConfig.getRequiredInterfaces());