Class UniqueGuiceyBundle
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.context.unique.item.UniqueGuiceyBundle
-
- All Implemented Interfaces:
GuiceyBundle
- Direct Known Subclasses:
CoreInstallersBundle
,HK2DebugBundle
,WebInstallersBundle
public abstract class UniqueGuiceyBundle extends java.lang.Object implements GuiceyBundle
Base class for unique bundles: only one bundle instance must be accepted and all others considered duplicate. Note that class only properly implements equals method so guicey deduplication mechanism could filter other instances. It is not required to use this class to grant bundle uniqueness - you may directly implement equals method in your bundle.Classed are compared by name to properly detect classes from different class loaders.
-
-
Constructor Summary
Constructors Constructor Description UniqueGuiceyBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.installer.bundle.GuiceyBundle
initialize, run
-
-