T - instance typepublic abstract class InstanceItemInfoImpl<T> extends ItemInfoImpl implements InstanceItemInfo<T>
| Constructor and Description |
|---|
InstanceItemInfoImpl(ConfigItem itemType,
java.lang.Class type) |
InstanceItemInfoImpl(ConfigItem itemType,
T instance) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ItemId> |
getDuplicates()
Duplicate instances are completely ignored.
|
T |
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, T instance)
public T getInstance()
getInstance in interface InstanceItemInfo<T>public 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 InstanceItemInfo<T>public void setInstanceCount(int instanceCount)
public java.util.List<ItemId> getDuplicates()
InstanceItemInfogetDuplicates in interface InstanceItemInfo<T>public java.lang.String toString()
toString in class ItemInfoImpl