@Test public void shouldLoadInternalExporter() throws ExporterLoadException, ExporterJarLoadException { final ExporterCfg config = new ExporterCfg(); config.setClassName(ControlledTestExporter.class.getCanonicalName()); config.setJarPath(null); final ExporterDescriptor descriptor = repository.load("controlled", config); assertThat(config.isExternal()).isFalse(); assertThat(descriptor.newInstance()).isInstanceOf(ControlledTestExporter.class); }
public ExporterDescriptor load(final String id, final Class<? extends Exporter> exporterClass) throws ExporterLoadException { return load(id, exporterClass, null); }
ExporterRepository { public ExporterDescriptor load(final String id, final Class<? extends Exporter> exporterClass) throws ExporterLoadException { return load(id, exporterClass, null); } }
ExporterRepository { public ExporterDescriptor load(final String id, final Class<? extends Exporter> exporterClass) throws ExporterLoadException { return load(id, exporterClass, null); } ExporterRepository();  ExporterRepository(
      final Map<String, ExporterDescriptor> exporters, final ExporterJarRepository jarRepository); }
ExporterRepository { public ExporterDescriptor load(final String id, final Class<? extends Exporter> exporterClass) throws ExporterLoadException { return load(id, exporterClass, null); } ExporterRepository();  ExporterRepository(
      final Map<String, ExporterDescriptor> exporters, final ExporterJarRepository jarRepository); Map<String, ExporterDescriptor> getExporters(); ExporterDescriptor load(final String id, final Class<? extends Exporter> exporterClass); ExporterDescriptor load(
      final String id,
      final Class<? extends Exporter> exporterClass,
      final Map<String, Object> args); ExporterDescriptor load(final String id, final ExporterCfg config); }
ExporterRepository { public ExporterDescriptor load(final String id, final Class<? extends Exporter> exporterClass) throws ExporterLoadException { return load(id, exporterClass, null); } ExporterRepository();  ExporterRepository(
      final Map<String, ExporterDescriptor> exporters, final ExporterJarRepository jarRepository); Map<String, ExporterDescriptor> getExporters(); ExporterDescriptor load(final String id, final Class<? extends Exporter> exporterClass); ExporterDescriptor load(
      final String id,
      final Class<? extends Exporter> exporterClass,
      final Map<String, Object> args); ExporterDescriptor load(final String id, final ExporterCfg config);  }