public class BeanIdentifierIndex extends 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(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.
|
String |
getDebugInfo() |
BeanIdentifier |
getIdentifier(int idx) |
Integer |
getIndex(BeanIdentifier identifier) |
Integer |
getIndexHash()
The index hash is used to detect possible inconsistencies in distributed environments.
|
boolean |
isBuilt() |
boolean |
isEmpty() |
String |
toString() |
public Integer getIndex(BeanIdentifier identifier)
identifier - public BeanIdentifier getIdentifier(int idx)
idx - public Integer getIndexHash()
Arrays.hashCode(Object[])public void build(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 String getDebugInfo()
Copyright © 2015. All Rights Reserved.