1 | void init() {↵ | | 1 | void postStartup() {↵
|
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.init();↵ | | 9 | p.postStartup();↵
|
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 | /**↵
|
20 | * @see org.columba.core.component.api.IComponentPlugin#postStartup()↵ | | 20 | * @see org.columba.core.component.api.IComponentPlugin#↵
|
21 | */↵ | | |
|
22 | public void postStartup↵ | | 21 | registerCommandLineArguments()↵
|
| | | 22 | */↵
|
23 | () {↵ | | 23 | public void registerCommandLineArguments() {↵
|
|
24 | final Enumeration<IExtension> extensionEnumeration = getExtensionHandler()↵ | | 24 | final Enumeration<IExtension> extensionEnumeration = getExtensionHandler()↵
|
25 | .getExtensionEnumeration();↵ | | 25 | .getExtensionEnumeration();↵
|
|
26 | while (extensionEnumeration.hasMoreElements()) {↵ | | 26 | while (extensionEnumeration.hasMoreElements()) {↵
|
27 | final IExtension ext = extensionEnumeration.nextElement();↵ | | 27 | final IExtension ext = extensionEnumeration.nextElement();↵
|
28 | IComponentPlugin p;↵ | | 28 | IComponentPlugin p;↵
|
29 | try {↵ | | 29 | try {↵
|
30 | p = (IComponentPlugin) ext.instanciateExtension(null);↵ | | 30 | p = (IComponentPlugin) ext.instanciateExtension(null);↵
|
31 | p.postStartup();↵ | | 31 | p.registerCommandLineArguments();↵
|
32 | } catch (final PluginException e) {↵ | | 32 | } catch (final PluginException e) {↵
|
33 | LOG.severe(e.getMessage());↵ | | 33 | LOG.severe(e.getMessage());↵
|
|
34 | if (Logging.DEBUG) {↵ | | 34 | if (Logging.DEBUG) {↵
|
35 | e.printStackTrace();↵ | | 35 | e.printStackTrace();↵
|
36 | }↵ | | 36 | }↵
|
37 | }↵ | | 37 | }↵
|
|
38 | }↵ | | 38 | }↵
|
39 | } | | 39 | }
|