Class TMFeatureSourceHelper
java.lang.Object
org.tailormap.api.persistence.helper.TMFeatureSourceHelper
- All Implemented Interfaces:
CapabilitiesLoadingProgressReporting
@Service
public class TMFeatureSourceHelper
extends Object
implements CapabilitiesLoadingProgressReporting
-
Constructor Summary
ConstructorsConstructorDescriptionTMFeatureSourceHelper(ch.rasc.sse.eventbus.SseEventBus eventBus, tools.jackson.databind.json.JsonMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptioncreateFeatureSource(TMFeatureSource featureSource) loadCapabilities(TMFeatureSource featureSource) voidEmit a capabilities loading progress event to the event bus.
-
Constructor Details
-
TMFeatureSourceHelper
public TMFeatureSourceHelper(ch.rasc.sse.eventbus.SseEventBus eventBus, tools.jackson.databind.json.JsonMapper mapper)
-
-
Method Details
-
loadCapabilities
- Throws:
IOException
-
createFeatureSource
public TMFeatureSource createFeatureSource(TMFeatureSource featureSource) throws IOException, IllegalArgumentException - Throws:
IOExceptionIllegalArgumentException
-
reportCapabilitiesLoadingProgress
Description copied from interface:CapabilitiesLoadingProgressReportingEmit a capabilities loading progress event to the event bus. An implementing class could use this method to report progress of loading capabilities from a feature source on a SSE event bus or a logging framework.- Specified by:
reportCapabilitiesLoadingProgressin interfaceCapabilitiesLoadingProgressReporting- Parameters:
event- The capabilities loading event to report
-