com.anrisoftware.gsanalysis.synthesis.SynthesisModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gsanalysis-synthesis Show documentation
Show all versions of gsanalysis-synthesis Show documentation
Calculates the value from a Global Scaling continued fraction.
The newest version!
/*
* Copyright 2015 Erwin Müller
*
* This file is part of gsanalysis-synthesis. All rights reserved.
*/
package com.anrisoftware.gsanalysis.synthesis;
import com.google.inject.AbstractModule;
import com.google.inject.assistedinject.FactoryModuleBuilder;
/**
* Installs the synthesis factory.
*
* @see SynthesisFactory
* @see SynthesisFromPositionFactory
*
* @author Erwin Mueller, [email protected]
* @since 3.0
*/
public class SynthesisModule extends AbstractModule {
@Override
protected void configure() {
install(new FactoryModuleBuilder().implement(Synthesis.class,
Synthesis.class).build(SynthesisFactory.class));
install(new FactoryModuleBuilder().implement(
SynthesisFromPosition.class, SynthesisFromPosition.class)
.build(SynthesisFromPositionFactory.class));
}
}