Class JerseyExtensionsInstalledByEvent


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

At this point hk is not completely started and so hk managed extensions (JerseyManaged) couldn't be obtained yet (even though you have access to root service locator). But extensions managed by guice could be obtained from guice context.

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 Details

    • JerseyExtensionsInstalledByEvent

      public JerseyExtensionsInstalledByEvent(EventsContext context, Class<? extends FeatureInstaller> installer, List<Class<?>> installed)
      Create event.
      Parameters:
      context - event context
      installer - installer type
      installed - installed extensions
  • Method Details

    • getInstaller

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

      public List<Class<?>> getInstalled()
      Returns:
      installed extensions type