ServiceLoader<OpenWebBeansPlugin> owbPluginsLoader = ServiceLoader.load(OpenWebBeansPlugin.class);
Iterator<OpenWebBeansPlugin> pluginIter = owbPluginsLoader.iterator();
while(pluginIter.hasNext())
{
OpenWebBeansPlugin plugin = pluginIter.next();
if (logger.wblWillLogInfo())
{
logger.info(OWBLogConst.INFO_0004, plugin.getClass().getSimpleName());
}
try
{
plugin.startUp();
}
catch (Exception e)
{
throwsException(e);
}