MentaContainer

Compare Revisions

Ignore whitespace Rev 139 → Rev 140

/trunk/src/main/java/org/mentacontainer/Factory.java
8,16 → 8,17
public interface Factory {
/**
* Instantiate the bean. A new instance is returned each time this method is called.
* Returns an instance. Creates one if necessary.
*
* @return An instance created by this factory.
* @return an instance
*/
public <T> T getInstance();
/**
* Return the type of objects that this factory creates.
* @return The type of objects created by this factory.
* Return the type of objects that this factory disposes.
*
* @return the type of objects returned by this factory.
*/
public Class<? extends Object> getType();
}