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 Deprecated Methods Modifier and Type Method Description java.lang.Class<? extends FeatureInstaller>
getInstalledBy()
Each extension is always registered by single installer.boolean
isGuiceBinding()
Indicates extensions, recognized from guice modules.boolean
isJerseyManaged()
Deprecated.in the next version HK2 support will be removed and annotation will become uselessboolean
isLazy()
Lazy beans are not registered in guice by default.boolean
isOptional()
Optional extensions are registered directly in guicey bundles.-
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, 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
@Deprecated boolean isJerseyManaged()
Deprecated.in the next version HK2 support will be removed and annotation will become uselessIndicates extension management by jersey instead of guice.- 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
-
-