public abstract class AbstractDataDictionary<T> extends AbstractMessageConstructionInterceptor implements DataDictionary<T>, org.springframework.beans.factory.InitializingBean
DataDictionary.PathMappingStrategy
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.io.Resource |
mappingFile
mapping file resource
|
protected Map<String,String> |
mappings
Known mappings to this dictionary
|
Constructor and Description |
---|
AbstractDataDictionary() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected <T> T |
convertIfNecessary(String value,
T originalValue)
Convert to original value type if necessary.
|
org.springframework.core.io.Resource |
getMappingFile()
Gets the mapping file resource.
|
Map<String,String> |
getMappings()
Gets the mappings.
|
String |
getName()
Gets this interceptors name.
|
DataDictionary.PathMappingStrategy |
getPathMappingStrategy()
Gets the path mapping strategy.
|
boolean |
isGlobalScope()
Should dictionary be used in global scope.
|
void |
setGlobalScope(boolean scope)
Sets the global scope property.
|
void |
setMappingFile(org.springframework.core.io.Resource mappingFile)
Sets the mapping file resource.
|
void |
setMappings(Map<String,String> mappings)
Sets the mappings.
|
void |
setName(String name)
Sets the data dictionary name.
|
void |
setPathMappingStrategy(DataDictionary.PathMappingStrategy pathMappingStrategy)
Sets the path mapping strategy.
|
interceptMessage, interceptMessageConstruction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
translate
interceptMessageConstruction, supportsMessageType
protected org.springframework.core.io.Resource mappingFile
protected <T> T convertIfNecessary(String value, T originalValue)
T
- value
- originalValue
- public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public String getName()
AbstractMessageConstructionInterceptor
getName
in interface DataDictionary<T>
getName
in class AbstractMessageConstructionInterceptor
public void setName(String name)
name
- public boolean isGlobalScope()
DataDictionary
isGlobalScope
in interface DataDictionary<T>
public void setGlobalScope(boolean scope)
scope
- public void setMappings(Map<String,String> mappings)
mappings
- public org.springframework.core.io.Resource getMappingFile()
public void setMappingFile(org.springframework.core.io.Resource mappingFile)
mappingFile
- public DataDictionary.PathMappingStrategy getPathMappingStrategy()
DataDictionary
getPathMappingStrategy
in interface DataDictionary<T>
public void setPathMappingStrategy(DataDictionary.PathMappingStrategy pathMappingStrategy)
pathMappingStrategy
- Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.