io.vanillabp.springboot.adapter.AdapterConfigurationBase Maven / Gradle / Ivy
package io.vanillabp.springboot.adapter;
import org.springframework.data.repository.CrudRepository;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public abstract class AdapterConfigurationBase> {
private Map, P> connectableServices = new HashMap<>();
public abstract String getAdapterId();
public abstract P newProcessServiceImplementation(
final SpringDataUtil springDataUtil,
final Class workflowAggregateClass,
final Class> workflowAggregateIdClass,
final CrudRepository workflowAggregateRepository);
protected Collection getConnectableServices() {
return connectableServices.values();
}
protected void putConnectableService(
final Class> workflowAggregateClass,
final P connectableService) {
connectableServices.put(workflowAggregateClass, connectableService);
}
}