MentaContainer

Compare Revisions

Ignore whitespace Rev 56 → Rev 57

/trunk/src/main/java/org/mentacontainer/example/BasicOperations.java
3,6 → 3,7
import java.util.Date;
 
import org.mentacontainer.Container;
import org.mentacontainer.Scope;
import org.mentacontainer.impl.MentaContainer;
 
public class BasicOperations {
44,7 → 45,7
Container c = new MentaContainer();
c.ioc("myString", String.class, true /* singleton */).addInitValue("saoj");
c.ioc("myString", String.class, Scope.SINGLETON).addInitValue("saoj");
String s1 = c.get("myString");