public class BeanIdentifierIndex extends java.lang.Object implements Service
CommonBean and implementations of PassivationCapable
are included). Identifiers are sorted into ascending order, according to the BeanIdentifier.asString() natural ordering.| Constructor and Description |
|---|
BeanIdentifierIndex() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(java.util.Set<Bean<?>> beans)
Note that the index can only be built once.
|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
java.lang.String |
getDebugInfo() |
BeanIdentifier |
getIdentifier(int idx) |
java.lang.Integer |
getIndex(BeanIdentifier identifier) |
java.lang.Integer |
getIndexHash()
The index hash is used to detect possible inconsistencies in distributed environments.
|
boolean |
isBuilt() |
boolean |
isEmpty() |
java.lang.String |
toString() |
public java.lang.Integer getIndex(BeanIdentifier identifier)
identifier - public BeanIdentifier getIdentifier(int idx)
idx - public java.lang.Integer getIndexHash()
Arrays.hashCode(Object[])public void build(java.util.Set<Bean<?>> beans)
beans - The set of beans the index should be built from, only instances of CommonBean and implementations of PassivationCapable are
includedIllegalStateException - If the index is built alreadypublic boolean isBuilt()
true if the index is built, false otherwisepublic boolean isEmpty()
true if the index is empty, false otherwisepublic void cleanup()
Servicepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDebugInfo()
Copyright © 2015. All Rights Reserved.