private void loadConfigurators(List<String> configurators, List<FrameworkLogEntry> errors) { for (Iterator<String> iHooks = configurators.iterator(); iHooks.hasNext();) { String hookName = iHooks.next(); try { Class<?> clazz = Class.forName(hookName); HookConfigurator configurator = (HookConfigurator) clazz.newInstance(); configurator.addHooks(this); } catch (Throwable t) { // We expect the follow exeptions may happen; but we need to catch all here // ClassNotFoundException // IllegalAccessException // InstantiationException // ClassCastException errors.add(new FrameworkLogEntry(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, 0, "error loading hook: " + hookName, 0, t, null)); //$NON-NLS-1$ } } }
private void loadConfigurators(List<String> configurators, List<FrameworkLogEntry> errors) { for (Iterator<String> iHooks = configurators.iterator(); iHooks.hasNext();) { String hookName = iHooks.next(); try { Class<?> clazz = Class.forName(hookName); HookConfigurator configurator = (HookConfigurator) clazz.newInstance(); configurator.addHooks(this); } catch (Throwable t) { // We expect the follow exeptions may happen; but we need to catch all here // ClassNotFoundException // IllegalAccessException // InstantiationException // ClassCastException errors.add(new FrameworkLogEntry(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, 0, "error loading hook: " + hookName, 0, t, null)); //$NON-NLS-1$ } } }
private void loadConfigurators(List<String> configurators, List<FrameworkLogEntry> errors) { for (Iterator<String> iHooks = configurators.iterator(); iHooks.hasNext();) { String hookName = iHooks.next(); try { Class<?> clazz = Class.forName(hookName); HookConfigurator configurator = (HookConfigurator) clazz.newInstance(); configurator.addHooks(this); } catch (Throwable t) { // We expect the follow exeptions may happen; but we need to catch all here // ClassNotFoundException // IllegalAccessException // InstantiationException // ClassCastException errors.add(new FrameworkLogEntry(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, 0, "error loading hook: " + hookName, 0, t, null)); //$NON-NLS-1$ } } }
private void loadConfigurators(List<String> configurators, List<FrameworkLogEntry> errors) { for (Iterator<String> iHooks = configurators.iterator(); iHooks.hasNext();) { String hookName = iHooks.next(); try { Class<?> clazz = Class.forName(hookName); HookConfigurator configurator = (HookConfigurator) clazz.newInstance(); configurator.addHooks(this); } catch (Throwable t) { // We expect the follow exeptions may happen; but we need to catch all here // ClassNotFoundException // IllegalAccessException // InstantiationException // ClassCastException errors.add(new FrameworkLogEntry(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, 0, "error loading hook: " + hookName, 0, t, null)); //$NON-NLS-1$ } } }
private void loadConfigurators(List<String> configurators, List<FrameworkLogEntry> errors) { for (Iterator<String> iHooks = configurators.iterator(); iHooks.hasNext();) { String hookName = iHooks.next(); try { Class<?> clazz = Class.forName(hookName); HookConfigurator configurator = (HookConfigurator) clazz.newInstance(); configurator.addHooks(this); } catch (Throwable t) { // We expect the follow exeptions may happen; but we need to catch all here // ClassNotFoundException // IllegalAccessException // InstantiationException // ClassCastException errors.add(new FrameworkLogEntry(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, 0, "error loading hook: " + hookName, 0, t, null)); //$NON-NLS-1$ } } }
private void loadConfigurators(List<String> configurators, List<FrameworkLogEntry> errors) { for (Iterator<String> iHooks = configurators.iterator(); iHooks.hasNext();) { String hookName = iHooks.next(); try { Class<?> clazz = Class.forName(hookName); HookConfigurator configurator = (HookConfigurator) clazz.newInstance(); configurator.addHooks(this); } catch (Throwable t) { // We expect the follow exeptions may happen; but we need to catch all here // ClassNotFoundException // IllegalAccessException // InstantiationException // ClassCastException errors.add(new FrameworkLogEntry(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, 0, "error loading hook: " + hookName, 0, t, null)); //$NON-NLS-1$ } } }