public DefinitionsFactory(XmlDefinitionsSet xmlDefinitions) throws NoSuchDefinitionException {
definitions = new HashMap();
// First, resolve inheritance
xmlDefinitions.resolveInheritances();
// Walk thru xml set and copy each definitions.
Iterator i = xmlDefinitions.getDefinitions().values().iterator();
while( i.hasNext() )
{
XmlDefinition xmlDefinition = (XmlDefinition)i.next();
putDefinition( new ComponentDefinition( xmlDefinition) );
} // end loop
}
Parameters:
xmlDefinitions - Resolved definition from XmlDefinitionSet.
Throws:
NoSuchDefinitionException - If an error occurs while resolving inheritance
|