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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends FeatureInstaller>getInstalledBy()Each extension is always registered by single installer.booleanisGuiceBinding()Indicates extensions, recognized from guice modules.booleanisJerseyExtension()Jersey extensions detected byJerseyInstallerinterface.booleanisJerseyManaged()Indicates extension management by jersey instead of guice.booleanisLazy()Lazy beans are not registered in guice by default.booleanisOptional()Optional extensions are registered directly in guicey bundles.booleanisWebExtension()Web extensions detected byWebInstallermarker interface on detected installer.-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.sign.DisableSupport
getDisabledBy, isEnabled
-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.ItemInfo
getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isAllDataCollected, isRegistered, isRegisteredDirectly
-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.sign.ScanSupport
isFromScan
-
-
-
-
Method Detail
-
getInstalledBy
java.lang.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 byWebInstallermarker 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 byJerseyInstallerinterface. Note that jersey extensions areisWebExtension().Don't confuse with
isJerseyManaged()which indicates what ioc manage extension instance (guice/hk2).- Returns:
- true if extension is a jersey extension
-
-