List points = md.getConfigurationPoints();
int count = size(points);
for (int i = 0; i < count; i++)
{
ConfigurationPointDescriptor cpd = (ConfigurationPointDescriptor) points.get(i);
String pointId = moduleId + "." + cpd.getId();
ConfigurationPoint existingPoint = (ConfigurationPoint) _configurationPoints
.get(pointId);
if (existingPoint != null)
{
_errorHandler.error(_log, ImplMessages.duplicateExtensionPointId(
pointId,
existingPoint), cpd.getLocation(), null);
continue;
}
if (_log.isDebugEnabled())
_log.debug("Creating configuration point " + pointId);
ConfigurationPointImpl point = new ConfigurationPointImpl();
point.setExtensionPointId(pointId);
point.setLocation(cpd.getLocation());
point.setModule(module);
point.setExpectedCount(cpd.getCount());
setContributionsSchema(cpd, point);
point.setVisibility(cpd.getVisibility());
point.setShutdownCoordinator(_shutdownCoordinator);
registry.addConfigurationPoint(point);