|
|
|
|
Re: How to know when virgo finished loading all plugins [message #1061261 is a reply to message #1017270] |
Thu, 30 May 2013 16:37  |
Eclipse User |
|
|
|
You can use the org.eclipse.virgo.kernel.install.artifact.InstallArtifact class to subscribe to virgo deployment events. Through this event handling, you could have logic executed when certain artifacts have been installed.
You register for start and install events by declaring an artifact lifecycle handler bean (extending org.eclipse.virgo.kernel.install.artifact.InstallArtifactLifecycleListenerSupport) in your spring context. Add them to your spring context (as follows):
<bean id="installArtifactLifecycleHandler" class="path.to.your.ArtifactLifecycleHandler" />
The org.eclipse.virgo.kernel.install.artifact.InstallArtifactLifecycleListenerSupport class has onStarted(...), onInstalled(...) event handler methods etc.
Good Luck!
|
|
|
Powered by
FUDForum. Page generated in 4.29069 seconds