Class 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 InstallHook interface is only supported since bundle com.day.jcr.vault in version 2.5.10 (AEM 6.0 SP3 and AEM 6.1). Previous versions of that bundle (and more specifically the com.day.jcr.vault.packaging.impl.JrVltInstallHookProcessor$Hook#loadMainClass(...) only support the old interface at com.day.jcr.vault.packaging.InstallHook

    • 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)