All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.l4.commons.guice.InstanceFactoryModule Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package se.l4.commons.guice;

import com.google.inject.AbstractModule;

import se.l4.commons.types.InstanceFactory;

/**
 * Module that binds up a singleton version of {@link InstanceFactory} that
 * will use {@link com.google.inject.Injector} to create instances.
 */
public class InstanceFactoryModule
	extends AbstractModule
{
	@Override
	public void configure()
	{
		bind(InstanceFactory.class).to(GuiceInstanceFactory.class);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy