Class ExampleOsgiHook
- java.lang.Object
-
- org.apache.jackrabbit.vault.packaging.hooks.ExampleOsgiHook
-
- All Implemented Interfaces:
InstallHook
public class ExampleOsgiHook extends Object implements InstallHook
Example hook that uses a class provided by the webapp (org.apache.sling.api.resource.ResourceUtil) and/or osgi and is not explicitly imported by the vault bundle
-
-
Constructor Summary
Constructors Constructor Description ExampleOsgiHook()
-
-
-
Method Detail
-
execute
public void execute(InstallContext ctx) throws PackageException
Description copied from interface:InstallHookExecutes hook specific code. This is called for each installation phase.- Specified by:
executein interfaceInstallHook- Parameters:
ctx- the installation context- Throws:
PackageException- if the hook desires to abort the current phase.
-
-