Class GuiceyBundleItemInfoImpl
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.InstanceItemInfoImpl<T>
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.BundleItemInfoImpl<GuiceyBundle>
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.GuiceyBundleItemInfoImpl
-
- All Implemented Interfaces:
BundleItemInfo<GuiceyBundle>,GuiceyBundleItemInfo,InstanceItemInfo<GuiceyBundle>,ItemInfo,DisableSupport
public class GuiceyBundleItemInfoImpl extends BundleItemInfoImpl<GuiceyBundle> implements GuiceyBundleItemInfo
Bundle item info implementation.- Since:
- 06.07.2016
-
-
Constructor Summary
Constructors Constructor Description GuiceyBundleItemInfoImpl(java.lang.Class<? extends GuiceyBundle> type)GuiceyBundleItemInfoImpl(GuiceyBundle bundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDropwizard()booleanisFromLookup()booleanisTransitive()In case when bundle is registered multiple times, bundle will be transitive if all registrations were transitive.-
Methods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.BundleItemInfoImpl
getDisabledBy, isEnabled
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.InstanceItemInfoImpl
getDuplicates, getInstance, getInstanceCount, setInstanceCount, toString
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
countRegistrationAttempt, getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isRegistered, isRegisteredDirectly
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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.InstanceItemInfo
getDuplicates, getInstance, getInstanceCount
-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.ItemInfo
getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isRegistered, isRegisteredDirectly
-
-
-
-
Constructor Detail
-
GuiceyBundleItemInfoImpl
public GuiceyBundleItemInfoImpl(java.lang.Class<? extends GuiceyBundle> type)
-
GuiceyBundleItemInfoImpl
public GuiceyBundleItemInfoImpl(GuiceyBundle bundle)
-
-
Method Detail
-
isFromLookup
public boolean isFromLookup()
- Specified by:
isFromLookupin interfaceGuiceyBundleItemInfo- Returns:
- true if bundle resolved by lookup mechanism, false otherwise
- See Also:
GuiceyBundleLookup
-
isTransitive
public boolean isTransitive()
Description copied from interface:BundleItemInfoIn case when bundle is registered multiple times, bundle will be transitive if all registrations were transitive. Reminder: bundle is registered by instance, but same instance may be registered multiple times. Also, deduplication mechanism could consider different instances as the same bundle (equal objects, by default).- Specified by:
isTransitivein interfaceBundleItemInfo<GuiceyBundle>- Returns:
- true when bundle was registered only by some other bundle (and never directly)
-
isDropwizard
public boolean isDropwizard()
- Specified by:
isDropwizardin interfaceBundleItemInfo<GuiceyBundle>- Returns:
- true for dropwizard bundle, false for guicey bundle
-
-