InstallHook and Sling runmode
Hi,
Is it possible to read Sling RunMode in InstallHook implementation?
Thanks
Hi,
Is it possible to read Sling RunMode in InstallHook implementation?
Thanks
It seems that code was good but way how I use it was not for Osgi aware hook.
Difference was in hook class context itself. Initially I just build JAR and put it into package in /META-INF/vault/hooks
Now when hook is in separate bundle installed before and defined in property in content-package-maven-plugin configuration it is osgi aware ![]()
In code InstallHookProcessorImpl.java I found that it looks for package properties in this format installhook.{name}.class to register hooks
Netcentric is using property "installhook.actool.class" but you can reaplce "actool" with any string
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.