Package de.ufinke.cubaja.config
Interface ElementFactoryProvider
-
public interface ElementFactoryProviderProvider ofElementFactorys. A configuration node which implements this interface is able to choose the source of subordinate node instances dynamically. This feature is needed when the classes which represent XML sub-elements are not known at compile time, e.g. when they depend on other configuration parameters.- Author:
- Uwe Finke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ElementFactorygetFactory(String tagName, Map<String,String> attributes)Returns anElementFactoryto the parser.
-
-
-
Method Detail
-
getFactory
ElementFactory getFactory(String tagName, Map<String,String> attributes) throws Exception
Returns anElementFactoryto the parser. If the given tag or attributes are not supported by the implementing class, the result may benull, so that the parser tries to create a node instance in the standard way.- Parameters:
tagName- XML tagattributes- map of XML attributes- Returns:
- element factory
- Throws:
Exception- any exception
-
-