osgi blueprint catch event update -


i want execute script when bundle update, uninstall, or new.

i use actualy destroy-method , init-method don't if bundle has "stop" or "remove".

 <bean id="plugin" class="com.toto.orderplugin" destroy-method="remove" init-method="install"> 

for sample, why want catch event when bundle update :

  1. i want know old version , new version , execute script in condition if bundle uninstall :
  2. i want drop datable if bundle new
  3. i want create datable

what right way type of process? can give me example?

thank

well in case i'd go std. activator. skip using blueprint xml , use bundle-activator instead, way have full control bundle start behaviour.


Comments