org.isda.cdm.generators.CDMRosettaSetup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of default-cdm-generators Show documentation
Show all versions of default-cdm-generators Show documentation
Setup for the generators that are run as part of the CDM distribution build
package org.isda.cdm.generators;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Provider;
import com.regnosys.rosetta.RosettaRuntimeModule;
import com.regnosys.rosetta.RosettaStandaloneSetup;
import com.regnosys.rosetta.generator.external.ExternalGenerators;
public final class CDMRosettaSetup extends RosettaStandaloneSetup {
public final class CDMRuntimeModule extends RosettaRuntimeModule {
@Override
public Class extends Provider> provideExternalGenerators() {
return DefaultExternalGeneratorsProvider.class;
}
}
@Override
public Injector createInjector() {
return Guice.createInjector(new CDMRuntimeModule());
}
}