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
-
Field Summary
Fields inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
complete -
Constructor Summary
ConstructorsConstructorDescriptionGuiceyBundleItemInfoImpl(Class<? extends GuiceyBundle> type) Create disable-only bundle item (only disabled).GuiceyBundleItemInfoImpl(GuiceyBundle bundle) Create bundle info. -
Method Summary
Modifier and TypeMethodDescriptionintUseful for sorting bundles in initialization order (to correctly order transitive bundles).booleanbooleanbooleanIn case when bundle is registered multiple times, bundle will be transitive if all registrations were transitive.voidsetInitOrder(int initOrder) Methods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.BundleItemInfoImpl
getDisabledBy, isEnabledMethods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.InstanceItemInfoImpl
getDuplicates, getInstance, getInstanceCount, setInstanceCount, toStringMethods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
countRegistrationAttempt, getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isAllDataCollected, isRegistered, isRegisteredDirectlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.sign.DisableSupport
getDisabledBy, isEnabledMethods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.InstanceItemInfo
getDuplicates, getInstance, getInstanceCountMethods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.ItemInfo
getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isAllDataCollected, isRegistered, isRegisteredDirectly
-
Constructor Details
-
GuiceyBundleItemInfoImpl
Create disable-only bundle item (only disabled).- Parameters:
type- bundle type
-
GuiceyBundleItemInfoImpl
Create bundle info.- Parameters:
bundle- guicey bundle
-
-
Method Details
-
isFromLookup
public boolean isFromLookup()- Specified by:
isFromLookupin interfaceGuiceyBundleItemInfo- Returns:
- true if bundle resolved by lookup mechanism, false otherwise
- See Also:
-
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
-
getInitOrder
public int getInitOrder()Description copied from interface:GuiceyBundleItemInfoUseful for sorting bundles in initialization order (to correctly order transitive bundles).- Specified by:
getInitOrderin interfaceGuiceyBundleItemInfo- Returns:
- initialization order (starting from 1)
-
setInitOrder
public void setInitOrder(int initOrder) - Parameters:
initOrder- initialization order
-