Package org.eobjects.datacleaner.guice

Examples of org.eobjects.datacleaner.guice.DCModule


   */
  public void openJob(final File file, final AnalysisJobBuilder ajb) {
    _userPreferences.setAnalysisJobDirectory(file.getParentFile());
    _userPreferences.addRecentJobFile(file);

    Injector injector = Guice.createInjector(new DCModule(_parentModule, ajb) {
      public String getJobFilename() {
        return file.getName();
      };
    });

View Full Code Here


    final JButton runButton = new JButton("Run", ImageManager.getInstance().getImageIcon("images/actions/execute.png"));
    runButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        Injector injector = Guice.createInjector(new DCModule(_parentModule, ajb) {
          @Override
          public String getJobFilename() {
            return "Save " + _table.getName() + " as Excel spreadsheet";
          }
        });
View Full Code Here

    _parentModule = parentModule;
  }

  @Override
  public void actionPerformed(ActionEvent e) {
    Injector injector = Guice.createInjector(new DCModule(_parentModule, null));
    injector.getInstance(AnalysisJobBuilderWindow.class).open();
  }
View Full Code Here

    final JButton runButton = new JButton("Run", ImageManager.getInstance().getImageIcon("images/actions/execute.png"));
    runButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
        Injector injector = Guice.createInjector(new DCModule(_parentModule, ajb) {
          @Override
          public String getJobFilename() {
            return "Save " + _table.getName() + " as CSV file";
          }
        });
View Full Code Here

    try {
      if (!ajb.isConfigured(true)) {
        throw new IllegalStateException("Unknown job configuration issue!");
      }

      Injector injector = Guice.createInjector(new DCModule(_parentModule, ajb));

      RunAnalysisActionListener actionListener = injector.getInstance(RunAnalysisActionListener.class);
      actionListener.actionPerformed(event);
    } catch (Exception e) {
      WidgetUtils.showErrorMessage("Error", "Could not perform quick analysis on table " + _table.getName(), e);
View Full Code Here

    RowProcessingAnalyzerJobBuilder<ValueDistributionAnalyzer> groupedValueDist = ajb
        .addRowProcessingAnalyzer(ValueDistributionAnalyzer.class);
    groupedValueDist.addInputColumn(ajb.getSourceColumnByName("PUBLIC.CUSTOMERS.CITY"));
    groupedValueDist.setConfiguredProperty("Group column", ajb.getSourceColumnByName("PUBLIC.CUSTOMERS.COUNTRY"));

    Injector injector = Guice.createInjector(new DCModule(conf) {
      @Override
      public AnalysisJobBuilder getAnalysisJobBuilder() {
        return ajb;
      }
    });
View Full Code Here

    ajb.addSourceColumns("PUBLIC.OFFICES.CITY", "PUBLIC.OFFICES.TERRITORY");
    groupedPatternFinder.addInputColumn(ajb.getSourceColumnByName("PUBLIC.OFFICES.CITY"));
    groupedPatternFinder.addInputColumn(ajb.getSourceColumnByName("PUBLIC.OFFICES.TERRITORY"), groupedPatternFinder
        .getDescriptor().getConfiguredProperty("Group column"));

    Injector injector = Guice.createInjector(new DCModule(conf) {
      @Override
      public AnalysisJobBuilder getAnalysisJobBuilder() {
        return ajb;
      }
    });
View Full Code Here

import com.google.inject.Injector;

public class PropertyWidgetFactoryTest extends TestCase {

  public void testCreateAllPropertyTypes() throws Exception {
    Injector injector = Guice.createInjector(new DCModule(DCConfiguration.get()));

    AnalysisJobBuilder ajb = injector.getInstance(AnalysisJobBuilder.class);

    AnalyzerBeanDescriptor<ManyPropertiesAnalyzer> descriptor = Descriptors.ofAnalyzer(ManyPropertiesAnalyzer.class);
View Full Code Here

    Table table = dcp.getSchemaNavigator().convertToTable("PUBLIC.CUSTOMERS");
    ajb.setDatastore(ds);
    ajb.addSourceColumns(table.getNumberColumns());
    ajb.addRowProcessingAnalyzer(NumberAnalyzer.class).addInputColumns(ajb.getSourceColumns());

    Injector injector = Guice.createInjector(new DCModule(conf) {
      @Override
      public AnalysisJobBuilder getAnalysisJobBuilder() {
        return ajb;
      }
    });
View Full Code Here

      exitCommandLine(configuration, 0);
      return;
    } else {
      // run in GUI mode

      final Injector injector = Guice.createInjector(new DCModule(configuration));

      final AnalysisJobBuilderWindow analysisJobBuilderWindow = injector.getInstance(AnalysisJobBuilderWindow.class);

      if (_options.isSingleDatastoreMode()) {
        DatastoreCatalog datastoreCatalog = configuration.getDatastoreCatalog();
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.guice.DCModule

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.