Interface ExtensionItemInfo

All Superinterfaces:
ClassItemInfo, DisableSupport, ItemInfo, ScanSupport
All Known Implementing Classes:
ExtensionItemInfoImpl

public interface ExtensionItemInfo extends ClassItemInfo, ScanSupport, DisableSupport
Extension configuration information.
Since:
09.07.2016
  • Method Details

    • getInstalledBy

      Class<? extends FeatureInstaller> getInstalledBy()
      Each extension is always registered by single installer. If extension is recognizable by multiple installers then it will be installed by first matching installer.
      Returns:
      installer installed this extension
    • isLazy

      boolean isLazy()
      Lazy beans are not registered in guice by default. Some installers could support this flag in a special way.
      Returns:
      true if extension annotated with LazyBinding, false otherwise
    • isJerseyManaged

      boolean isJerseyManaged()
      Indicates extension management by jersey instead of guice.

      Soft deprecation: try to avoid hk2 direct usage if possible, someday HK2 support will be removed

      Returns:
      true if extension annotated with JerseyManaged, false otherwise
    • isGuiceBinding

      boolean isGuiceBinding()
      Indicates extensions, recognized from guice modules. Extension might be found both by classpath scan (or registered manually) and be detected as binding declaration and in this case no automatic guice binding would be performed.
      Returns:
      true if extension detected in guice bindings, false otherwise (for direct-only extension)
    • isOptional

      boolean isOptional()
      Optional extensions are registered directly in guicey bundles. These extensions automatically become disabled if no installer recognize it (instead of throwing exception).
      Returns:
      true if extension is optional
    • isWebExtension

      boolean isWebExtension()
      Web extensions detected by WebInstaller marker interface on detected installer. Web extensions are: resources, servlets, filters, rest and all related jersey extensions. Everything that is not starts with lightweight guicey test should be marked as web.
      Returns:
      true if extension is a web extension
    • isJerseyExtension

      boolean isJerseyExtension()
      Jersey extensions detected by JerseyInstaller interface. Note that jersey extensions are isWebExtension().

      Don't confuse with isJerseyManaged() which indicates what ioc manage extension instance (guice/hk2).

      Returns:
      true if extension is a jersey extension