@Override public Compactor createCompactor(Properties properties, List<Tag<String>> tags, Optional<CompactorListener> compactorListener) throws CompactorCreationException { String compactorClassName = properties.getProperty(COMPACTION_COMPACTOR_CLASS, DEFAULT_COMPACTION_COMPACTOR_CLASS); try { return (Compactor) ConstructorUtils .invokeConstructor(Class.forName(compactorClassName), properties, tags, compactorListener); } catch (ReflectiveOperationException e) { throw new CompactorCreationException(String .format("Unable to create Compactor from key \"%s\" with value \"%s\"", COMPACTION_COMPACTOR_CLASS, compactorClassName), e); } } }
@Override public Compactor createCompactor(Properties properties, List<Tag<String>> tags, Optional<CompactorListener> compactorListener) throws CompactorCreationException { String compactorClassName = properties.getProperty(COMPACTION_COMPACTOR_CLASS, DEFAULT_COMPACTION_COMPACTOR_CLASS); try { return (Compactor) ConstructorUtils .invokeConstructor(Class.forName(compactorClassName), properties, tags, compactorListener); } catch (ReflectiveOperationException e) { throw new CompactorCreationException(String .format("Unable to create Compactor from key \"%s\" with value \"%s\"", COMPACTION_COMPACTOR_CLASS, compactorClassName), e); } } }