private void resolveConfigurationParsers(ModuleDefinition module)
{
for (Iterator iter = module.getConfigurationParsers().iterator(); iter.hasNext();)
{
UnresolvedExtension unresolved = (UnresolvedExtension) iter.next();
String configurationPointId = unresolved.getExtensionPointId();
if (LOG.isDebugEnabled()) {
LOG.debug("Trying to resolve configuration point " + configurationPointId + " referenced by" +
" ConfigurationParser " + logLocation(unresolved.getExtension().getLocation()));
}
ConfigurationPointDefinition configurationPoint = _definition.getConfigurationPoint(configurationPointId);
if (configurationPoint == null)
{
_errorHandler.error(
LOG,
DefinitionMessages.unknownConfigurationPoint(
IdUtils.extractModule(configurationPointId),
IdUtils.stripModule(configurationPointId)),
unresolved.getExtension().getLocation(),
null);
} else {
if (Visibility.PRIVATE.equals(configurationPoint.getVisibility())
&& !module.getId().equals(IdUtils.extractModule(configurationPointId))) {
_errorHandler.error(
LOG,
DefinitionMessages.configurationPointNotVisible(
configurationPoint,
module),
unresolved.getExtension().getLocation(),
null);
}
configurationPoint.addParser((ConfigurationParserDefinition) unresolved.getExtension());
}
iter.remove();
}
}