1 | void postStartup() {↵ | | 1 | void init() {↵
|
2 | final Enumeration<IExtension> extensionEnumeration = getExtensionHandler()↵ | | 2 | final Enumeration<IExtension> extensionEnumeration = getExtensionHandler()↵
|
3 | .getExtensionEnumeration();↵ | | 3 | .getExtensionEnumeration();↵
|
|
4 | while (extensionEnumeration.hasMoreElements()) {↵ | | 4 | while (extensionEnumeration.hasMoreElements()) {↵
|
5 | final IExtension ext = extensionEnumeration.nextElement();↵ | | 5 | final IExtension ext = extensionEnumeration.nextElement();↵
|
6 | IComponentPlugin p;↵ | | 6 | IComponentPlugin p;↵
|
|
7 | try {↵ | | 7 | try {↵
|
8 | p = (IComponentPlugin) ext.instanciateExtension(null);↵ | | 8 | p = (IComponentPlugin) ext.instanciateExtension(null);↵
|
9 | p.postStartup();↵ | | 9 | p.init();↵
|
10 | } catch (final PluginException e) {↵ | | 10 | } catch (final PluginException e) {↵
|
11 | LOG.severe(e.getMessage());↵ | | 11 | LOG.severe(e.getMessage());↵
|
|
12 | if (Logging.DEBUG) {↵ | | 12 | if (Logging.DEBUG) {↵
|
13 | e.printStackTrace();↵ | | 13 | e.printStackTrace();↵
|
14 | }↵ | | 14 | }↵
|
15 | }↵ | | 15 | ↵
|
| | | 16 | }↵
|
|
16 | }↵ | | 17 | }↵
|
17 | }↵ | | 18 | }↵
|
|
18 | /**↵ | | 19 | /**↵
|
19 | * @see org.columba.core.component.api.IComponentPlugin#registerCommandLineArguments()↵ | | 20 | * @see org.columba.core.component.api.IComponentPlugin#↵
|
20 | */↵ | | |
|
21 | public void registerCommandLineArguments↵ | | 21 | postStartup()↵
|
| | | 22 | */↵
|
22 | () {↵ | | 23 | public void postStartup() {↵
|
|
23 | final Enumeration<IExtension> extensionEnumeration = getExtensionHandler()↵ | | 24 | final Enumeration<IExtension> extensionEnumeration = getExtensionHandler()↵
|
24 | .getExtensionEnumeration();↵ | | 25 | .getExtensionEnumeration();↵
|
|
25 | while (extensionEnumeration.hasMoreElements()) {↵ | | 26 | while (extensionEnumeration.hasMoreElements()) {↵
|
26 | final IExtension ext = extensionEnumeration.nextElement();↵ | | 27 | final IExtension ext = extensionEnumeration.nextElement();↵
|
27 | IComponentPlugin p;↵ | | 28 | IComponentPlugin p;↵
|
28 | try {↵ | | 29 | try {↵
|
29 | p = (IComponentPlugin) ext.instanciateExtension(null);↵ | | 30 | p = (IComponentPlugin) ext.instanciateExtension(null);↵
|
30 | p.registerCommandLineArguments();↵ | | 31 | p.postStartup();↵
|
31 | } catch (final PluginException e) {↵ | | 32 | } catch (final PluginException e) {↵
|
32 | LOG.severe(e.getMessage());↵ | | 33 | LOG.severe(e.getMessage());↵
|
|
33 | if (Logging.DEBUG) {↵ | | 34 | if (Logging.DEBUG) {↵
|
34 | e.printStackTrace();↵ | | 35 | e.printStackTrace();↵
|
35 | }↵ | | 36 | }↵
|
36 | }↵ | | 37 | }↵
|
|
37 | }↵ | | 38 | }↵
|
38 | | | 39 |
|