org.milyn.javabean.factory
Class AbstractCachingFactoryDefinitionParser
java.lang.Object
org.milyn.javabean.factory.AbstractCachingFactoryDefinitionParser
- All Implemented Interfaces:
- FactoryDefinitionParser
- Direct Known Subclasses:
- BasicFactoryDefinitionParser, MVELFactoryDefinitionParser
public abstract class AbstractCachingFactoryDefinitionParser
- extends Object
- implements FactoryDefinitionParser
The AbstractCachingFactoryDefinitionParser caches all the
factories that are create with the createFactory method. This prevents
that factories are unnecessary created.
This class is thread safe. Factories that are created with this class
should also be thread safe.
- Author:
- maurice.zeijen@smies.com
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCachingFactoryDefinitionParser
public AbstractCachingFactoryDefinitionParser()
parse
public Factory<?> parse(String factoryDefinition)
- Description copied from interface:
FactoryDefinitionParser
- Parses the factory definition string and creates a factory object
that can create the object according to the definition.
- Specified by:
parse in interface FactoryDefinitionParser
- Parameters:
factoryDefinition - The factory definition
- Returns:
- The Factory object that creates the target object according to the definition.
createFactory
protected abstract Factory<?> createFactory(String factoryDefinition)
Copyright © 2018. All rights reserved.