Class EntityDataMemory
java.lang.Object
me.a8kj.config.template.memory.impl.GenericMapDataMemory<String>
me.a8kj.config.template.experimental.mapper.EntityDataMemory
- All Implemented Interfaces:
EntityAwareMemory,DataMemory<String>
An implementation of
EntityAwareMemory that integrates complex entity mapping
with standard configuration memory management.
* Note: This is an experimental feature and is currently considered unstable.
It extends GenericMapDataMemory to provide full support for path-based
data storage while delegating entity-specific logic to a MapperOperatorContract.
- Since:
- 0.3
- Author:
- a8kj7sea
-
Field Summary
Fields inherited from class me.a8kj.config.template.memory.impl.GenericMapDataMemory
storage -
Constructor Summary
ConstructorsConstructorDescriptionEntityDataMemory(MapperOperatorContract mapperService) Constructs anEntityDataMemorywith a specified mapper service and default percent-style placeholders (e.g., %key%).EntityDataMemory(MapperOperatorContract mapperService, ReplacementProcessor processor) Constructs anEntityDataMemorywith a specified mapper service and replacement processor. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the mapper service responsible for converting entities to and from memory-compatible structures.Provides theReplacementProcessorassociated with this memory instance.Methods inherited from class me.a8kj.config.template.memory.impl.GenericMapDataMemory
clear, contains, get, getBoolean, getDouble, getInt, getKeys, getString, getStringList, set, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.a8kj.config.template.memory.DataMemory
clear, contains, get, get, getBoolean, getDouble, getInt, getKeys, getOptional, getString, getString, getStringList, getStringList, set, transformMethods inherited from interface me.a8kj.config.template.experimental.mapper.EntityAwareMemory
getEntity, setEntity
-
Constructor Details
-
EntityDataMemory
Constructs anEntityDataMemorywith a specified mapper service and replacement processor.- Parameters:
mapperService- the service used for serializing and deserializing entities.processor- the processor responsible for handling dynamic string placeholders.
-
EntityDataMemory
Constructs anEntityDataMemorywith a specified mapper service and default percent-style placeholders (e.g., %key%).- Parameters:
mapperService- the service used for serializing and deserializing entities.
-
-
Method Details
-
getMapperService
Retrieves the mapper service responsible for converting entities to and from memory-compatible structures. * @return the internal mapper operator used for entity transformations.- Specified by:
getMapperServicein interfaceEntityAwareMemory- Returns:
- the
MapperOperatorContractinstance used by this memory.
-
getProcessor
Provides theReplacementProcessorassociated with this memory instance.Every implementation must provide its own processor to define how placeholders are identified and replaced.
* @return the internal replacement processor used for string manipulation.- Specified by:
getProcessorin interfaceDataMemory<String>- Returns:
- the replacement processor instance.
-