public abstract class AbstractCachingFactoryDefinitionParser extends Object implements FactoryDefinitionParser
This class is thread safe. Factories that are created with this class should also be thread safe.
FactoryDefinitionParser.FactoryDefinitionParserFactory
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<String,Factory<?>> |
factoryCache |
Constructor and Description |
---|
AbstractCachingFactoryDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract Factory<?> |
createFactory(String factoryDefinition) |
Factory<?> |
parse(String factoryDefinition)
Parses the factory definition string and creates a factory object
that can create the object according to the definition.
|
protected final ConcurrentHashMap<String,Factory<?>> factoryCache
public AbstractCachingFactoryDefinitionParser()
public Factory<?> parse(String factoryDefinition)
FactoryDefinitionParser
parse
in interface FactoryDefinitionParser
factoryDefinition
- The factory definitionCopyright © 2024. All rights reserved.