IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(BndtoolsConstants.CORE_PLUGIN_ID, "buildListeners");
listeners = new ArrayList<BuildListener>(elements.length);
for (IConfigurationElement elem : elements) {
try {
BuildListener listener = (BuildListener) elem.createExecutableExtension("class");
listeners.add(listener);
} catch (Exception e) {
logger.logError("Unable to instantiate build listener: " + elem.getAttribute("name"), e);
}
}