org.milyn.javabean.factory
Interface FactoryDefinitionParser
- All Known Implementing Classes:
- AbstractCachingFactoryDefinitionParser, BasicFactoryDefinitionParser, MVELFactoryDefinitionParser
public interface FactoryDefinitionParser
A factory definition string is an expression that instructs how to create a certain object.
A FactoryDefinitionParser can parse the factory definition and create a FactoryDefinitionParser.FactoryDefinitionParserFactory 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.
- Author:
- maurice.zeijen@smies.com
|
Method Summary |
Factory<?> |
parse(String factoryDefinition)
Parses the factory definition string and creates a factory object
that can create the object according to the definition. |
parse
Factory<?> parse(String factoryDefinition)
- Parses the factory definition string and creates a factory object
that can create the object according to the definition.
- Parameters:
factoryDefinition - The factory definition
- Returns:
- The Factory object that creates the target object according to the definition.
- Throws:
InvalidFactoryDefinitionException - If the factoryDefinition is invalid
FactoryException - If something went wrong while creating the factory
Copyright © 2018. All rights reserved.