if (matcher.matches()) { try { return instantiateDefault(matcher.group(1)); } catch (Exception e) { throw new IllegalArgumentException(String.format("Could not instantiate '%s'.", statement), e);
/** * Creates a new instance. * * @param configuration describes how to configure the new instance */ public ChannelConversionGraph(Configuration configuration) { this.costSquasher = configuration.getCostSquasherProvider().provide(); configuration.getChannelConversionProvider().provideAll().forEach(this::add); String treeSelectionStrategyClassName = configuration.getStringProperty( "rheem.core.optimizer.channels.selection", this.getClass().getCanonicalName() + '$' + CostbasedTreeSelectionStrategy.class.getSimpleName() ); this.treeSelectionStrategy = ReflectionUtils.instantiateDefault(treeSelectionStrategyClassName); }
return null; return instantiateDefault(optInstrumentationtStrategyClass.get()); }, defaultProvider