Skip to content
Lightweight dependency management for Java apps.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Build Status


A simple API for factories based on simple plain Java objects.

Part of Java Delight.


Create a collection of factories:

FactoryCollection factories = Factories.create();

Define classes for a factory:

private static class MyConfiguration implements Configuration {}
private static class MyDependencies implements Dependencies {}

Register a factory:

factories.register(new Factory<String, MyConfiguration, Dependencies>() {

	public boolean canInstantiate(Configuration conf) {
		return (conf instanceof MyConfiguration);

	public String create(MyConfiguration conf, Dependencies dependencies) {
		return "Hello, World!";

Instantiate an object:

Object created = factories.create(new MyConfiguration(), new MyDependencies());
// created == "Hello, WorlD!";

Maven Dependency

    <version>[insert latest version]</version>

This artifact is available on Maven Central and BinTray.

Maven Central


-> All Project Reports

You can’t perform that action at this time.