public interface FactoryDefinitionParser
FactoryDefinitionParser can parse the factory definition and create a Factory object which
can create the object according to the definition.
A FactoryDefinitionParser must have a public argumentless constructor. The FactoryDefinitionParser
must be thread safe. The parse method can be called concurrently. If the FactoryDefinitionParser is created
with the FactoryDefinitionParser.FactoryDefinitionParserFactory then it will be created only once.| Modifier and Type | Interface and Description |
|---|---|
static class |
FactoryDefinitionParser.FactoryDefinitionParserFactory |
| Modifier and Type | Method and Description |
|---|---|
Factory<?> |
parse(String factoryDefinition)
Parses the factory definition string and creates a factory object
that can create the object according to the definition.
|
Factory<?> parse(String factoryDefinition)
factoryDefinition - The factory definitionInvalidFactoryDefinitionException - If the factoryDefinition is invalidFactoryException - If something went wrong while creating the factoryCopyright © 2020. All rights reserved.