org.mentacontainer.Factory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of menta-container Show documentation
Show all versions of menta-container Show documentation
A IOC container as simple and pragmatic as it can get with programmatic configuration through a Fluent API.
package org.mentacontainer;
/**
* An IoC factory that knows how to create instances.
*
* @author [email protected]
*/
public interface Factory {
/**
* Returns an instance. Creates one if necessary.
*
* @return an instance
*/
public T getInstance();
/**
* Return the type of objects that this factory disposes.
*
* @return the type of objects returned by this factory.
*/
public Class> getType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy