Package com.puppetlabs.geppetto.common.tracer

Examples of com.puppetlabs.geppetto.common.tracer.DefaultTracer


  }

  public void configureDebugTracing(com.google.inject.Binder binder) {
    binder.bind(IStringProvider.class).to(DefaultStringProvider.class);
    binder.bind(ITracer.class).annotatedWith(Names.named(PPDSLConstants.PP_DEBUG_LINKER)).toInstance(
      new DefaultTracer(PPDSLConstants.PP_DEBUG_LINKER));
    binder.bind(ITracer.class).annotatedWith(Names.named(FormattingTracer.DEBUG_FORMATTER)).toInstance(
      new DefaultTracer(FormattingTracer.DEBUG_FORMATTER));
    binder.bind(FormattingTracer.class).asEagerSingleton();
    // DomModelUtils provides debugging formatting and wants access to the singleton FormattingTracer
    binder.requestStaticInjection(DomModelUtils.class);
  }
View Full Code Here


  public PPModuleMetadataBuilder() {
    // Hm, can not inject this because it was not possible to inject this builder via the
    // executable extension factory
    Injector injector = ((PPDSLActivator) PPDSLActivator.getInstance()).getPPInjector();
    tracer = new DefaultTracer(PPUiConstants.DEBUG_OPTION_MODULEFILE);
    validationAdvisorProvider = injector.getProvider(IValidationAdvisor.class);
    forge = injector.getInstance(Forge.class);
  }
View Full Code Here

  }

  public void configureDebugTracing(com.google.inject.Binder binder) {
    binder.bind(IStringProvider.class).to(DefaultStringProvider.class);
    binder.bind(ITracer.class).annotatedWith(Names.named(PPUiConstants.DEBUG_OPTION_MODULEFILE)).toInstance(
      new DefaultTracer(PPUiConstants.DEBUG_OPTION_MODULEFILE));
    binder.bind(ITracer.class).annotatedWith(Names.named(PPUiConstants.DEBUG_OPTION_PARSER)).toInstance(
      new DefaultTracer(PPUiConstants.DEBUG_OPTION_PARSER));
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.common.tracer.DefaultTracer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.