[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] How to know if a plan is deployed

The kernel drives all registered services implementing the InstallArtifactLifecycleListener interface when an artefact changes state.

All you need to do is register an instance of that interface as an OSGi service and the onStarted method will be driven when each artefact is fully started. Note that the listener will miss any started events that occur before the listener is registered in the service registry.

onStarted is passed the InstallArtifact which just started. The artefact type will be "plan" and you can also inquire its (symbolic) name and version.

Regards,
Glyn


On 25 Apr 2013, at 15:06, Romain Gilles <romain.gilles@xxxxxxxxx> wrote:

> Hi all,
> I'm a newbie in virgo... How can I know if my plan is fully started. Maybe an event?
> 
> Thanks,
> 
> Romain
> _______________________________________________
> virgo-dev mailing list
> virgo-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/virgo-dev