Class ExtensionsInstalledByEvent


  • public class ExtensionsInstalledByEvent
    extends InjectorPhaseEvent
    Called when installer installed all related extensions and only for installers actually performed installations (extensions list never empty). Provides installer and installed extensions types.

    NOTE: JerseyInstaller installers will no be notified here, even if they participate in installation as installation is considered incomplete at that point.

    Extension instance could be obtained manually from injector.

    Installer passed by type to simplify differentiation. If, for some reason, you need to access installer instance then save installers in InstallersResolvedEvent and find by type (only one installer of exact type could be registered).

    Since:
    19.04.2018
    • Constructor Detail

      • ExtensionsInstalledByEvent

        public ExtensionsInstalledByEvent​(EventsContext context,
                                          java.lang.Class<? extends FeatureInstaller> installer,
                                          java.util.List<java.lang.Class<?>> installed)
    • Method Detail

      • getInstaller

        public java.lang.Class<? extends FeatureInstaller> getInstaller()
        Returns:
        installer type
      • getInstalled

        public java.util.List<java.lang.Class<?>> getInstalled()
        Returns:
        installed extension types