Class OsgiAwareInstallHook
- java.lang.Object
-
- biz.netcentric.cq.tools.actool.installhook.OsgiAwareInstallHook
-
- All Implemented Interfaces:
org.apache.jackrabbit.vault.packaging.InstallHook
- Direct Known Subclasses:
AcToolInstallHook
@ProviderType public abstract class OsgiAwareInstallHook extends Object implements org.apache.jackrabbit.vault.packaging.InstallHook
A Jackrabbit FileVault install hook which supports retrieving OSGi services and the bundle context as well as some logging capabilities.The new
InstallHookinterface is only supported since bundlecom.day.jcr.vaultin version 2.5.10 (AEM 6.0 SP3 and AEM 6.1). Previous versions of that bundle (and more specifically thecom.day.jcr.vault.packaging.impl.JrVltInstallHookProcessor$Hook#loadMainClass(...)only support the old interface atcom.day.jcr.vault.packaging.InstallHook
-
-
Constructor Summary
Constructors Constructor Description OsgiAwareInstallHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.framework.BundleContextgetBundleContext()protected <T> org.osgi.framework.ServiceReference<T>getServiceReference(Class<T> clazz)protected voidlog(String message, org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener listener)
-
-
-
Constructor Detail
-
OsgiAwareInstallHook
public OsgiAwareInstallHook() throws ClassCastException- Throws:
ClassCastException
-
-
Method Detail
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
-
getServiceReference
protected <T> org.osgi.framework.ServiceReference<T> getServiceReference(Class<T> clazz)
-
log
protected void log(String message, org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener listener)
-
-