io.vanillabp.cockpit.adapter.common.service.AdapterConfigurationBase Maven / Gradle / Ivy
The newest version!
package io.vanillabp.cockpit.adapter.common.service;
import io.vanillabp.springboot.adapter.SpringDataUtil;
import org.springframework.data.repository.CrudRepository;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public abstract class AdapterConfigurationBase> {
private final Map, P> connectableServices = new HashMap<>();
public abstract String getAdapterId();
public abstract P newBusinessCockpitServiceImplementation(
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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy