public class DispatchLayerServiceImpl extends Object implements DispatchLayerService
Constructor and Description |
---|
DispatchLayerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
DispatchLayer<?> |
createDispatchLayer(URI dispatchLayerType,
com.fasterxml.jackson.databind.JsonNode configuration)
Returns the dispatch layer for the specified URI.
|
boolean |
dispatchLayerExists(URI dispatchLayerType)
Returns true iff a dispatch layer exists for the specified URI.
|
com.fasterxml.jackson.databind.JsonNode |
getDispatchLayerConfigurationSchema(URI dispatchLayerType)
Returns the JSON Schema for the configuration required by a dispatch
layer.
|
Set<URI> |
getDispatchLayerTypes()
Returns the available dispatch layer types.
|
void |
setDispatchLayerFactories(List<DispatchLayerFactory> dispatchLayerFactories)
Sets the list of available
DispatchLayerFactory s. |
public Set<URI> getDispatchLayerTypes()
DispatchLayerService
getDispatchLayerTypes
in interface DispatchLayerService
public boolean dispatchLayerExists(URI dispatchLayerType)
DispatchLayerService
dispatchLayerExists
in interface DispatchLayerService
dispatchLayerType
- the dispatch layer type to checkpublic com.fasterxml.jackson.databind.JsonNode getDispatchLayerConfigurationSchema(URI dispatchLayerType) throws DispatchLayerNotFoundException
DispatchLayerService
getDispatchLayerConfigurationSchema
in interface DispatchLayerService
DispatchLayerNotFoundException
- if a dispatch layer cannot be found for the specified URIpublic DispatchLayer<?> createDispatchLayer(URI dispatchLayerType, com.fasterxml.jackson.databind.JsonNode configuration) throws DispatchLayerNotFoundException, DispatchLayerConfigurationException
DispatchLayerService
createDispatchLayer
in interface DispatchLayerService
dispatchLayerType
- a URI that identifies a dispatch layerconfiguration
- the configuration for the dispatch layer, can be
null
DispatchLayerNotFoundException
- if a dispatch layer cannot be found for the specified URIDispatchLayerConfigurationException
- if the configuration is not validpublic void setDispatchLayerFactories(List<DispatchLayerFactory> dispatchLayerFactories)
DispatchLayerFactory
s.
In a production environment this should be set by Spring DM.dispatchLayerFactories
- the list of available DispatchLayerFactory
sCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.