
com.gruelbox.transactionoutbox.FunctionInstantiator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transactionoutbox-core Show documentation
Show all versions of transactionoutbox-core Show documentation
A safe implementation of the transactional outbox pattern for Java (core library)
package com.gruelbox.transactionoutbox;
import com.gruelbox.transactionoutbox.spi.AbstractFullyQualifiedNameInstantiator;
import java.util.function.Function;
import lombok.experimental.SuperBuilder;
@SuperBuilder
class FunctionInstantiator extends AbstractFullyQualifiedNameInstantiator {
private final Function, Object> fn;
@Override
public Object createInstance(Class> clazz) {
return fn.apply(clazz);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy