public abstract class InstanceItemInfoImpl extends ItemInfoImpl implements InstanceItemInfo
| Constructor and Description |
|---|
InstanceItemInfoImpl(ConfigItem itemType,
java.lang.Class type) |
InstanceItemInfoImpl(ConfigItem itemType,
java.lang.Object instance) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ItemId> |
getDuplicates()
Duplicate instances are completely ignored.
|
java.lang.Object |
getInstance() |
int |
getInstanceCount()
For example, if multiple bundles registered:
.bundles(new Bundle(), new Bundle(), new Bundle()
then their counts would be 1, 2 and 3 in order of registration. |
void |
setInstanceCount(int instanceCount) |
java.lang.String |
toString() |
countRegistrationAttempt, getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isRegistered, isRegisteredDirectlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isRegistered, isRegisteredDirectlypublic InstanceItemInfoImpl(ConfigItem itemType, java.lang.Class type)
public InstanceItemInfoImpl(ConfigItem itemType, java.lang.Object instance)
public java.lang.Object getInstance()
getInstance in interface InstanceItemInfopublic int getInstanceCount()
InstanceItemInfo.bundles(new Bundle(), new Bundle(), new Bundle()
then their counts would be 1, 2 and 3 in order of registration. For the same instances counts will be the same.
This number is required to differentiate instances in reporting.getInstanceCount in interface InstanceItemInfopublic void setInstanceCount(int instanceCount)
public java.util.List<ItemId> getDuplicates()
InstanceItemInfogetDuplicates in interface InstanceItemInfopublic java.lang.String toString()
toString in class ItemInfoImpl