| package com.apigee.security.oas; |
| |
| import com.apigee.security.oas.providers.PrintWriterProvider; |
| import com.google.inject.AbstractModule; |
| import com.google.inject.Provides; |
| import java.io.PrintWriter; |
| |
| /** Module with instructions for instantiating instances of {@link CommandLineParser}. */ |
| public final class CommandLineInnerModule extends AbstractModule { |
| @Override |
| protected void configure() { |
| bind(CommandLineParser.class).to(CommandLineBaseParser.class); |
| bind(CommandLineRunner.class).to(CommandLineBaseRunner.class); |
| bind(PrintWriter.class).toProvider(PrintWriterProvider.class); |
| } |
| |
| @Provides |
| public CommandLineArgs provideCommandLineArgs() { |
| return new CommandLineArgs(); |
| } |
| } |