MentaContainer

Compare Revisions

Ignore whitespace Rev 20 → Rev 21

/trunk/src/main/java/org/mentacontainer/Container.java
39,7 → 39,7
public Component ioc(String key, Class<? extends Object> klass, boolean singleton);
/**
* Same as {@link #ioc(String, Class<? extends Object>, singleton)} except that it assumes
* Same as {@link #ioc(String, Class, boolean)} except that it assumes
* singleton is false.
*
* @param key
53,6 → 53,7
*
* @param component The component for the IoC.
* @return The component passed as a parameter. (Fluent API)
* @see Component
*/
public Component ioc(Component component);
74,7 → 75,7
public Dependency autowire(String property, Class<? extends Object> klass, String source);
/**
* Same as {@link #autowire(String, Class<? extends Object>)} except that it assumes that the property name will be the source name, in other words,
* Same as {@link #autowire(String, Class, String)} except that it assumes that the property name will be the source name, in other words,
* the property name is the same as the bean name that will be injected as the dependency.
*
* @param property
84,7 → 85,11
public Dependency autowire(String property, Class<? extends Object> klass);
/**
* Setup a dependency.
*
* @param dependency The dependency to setup
* @return The dependency itself. (Fluent API)
* @see Dependency
*/
public Dependency autowire(Dependency dependency);