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.
|
BeanIdentifier |
getIdentifier(int idx) |
Integer |
getIndex(BeanIdentifier identifier) |
boolean |
isBuilt() |
String |
toString() |
public Integer getIndex(BeanIdentifier identifier)
identifier - public BeanIdentifier getIdentifier(int idx)
idx - 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 void cleanup()
ServiceCopyright © 2014. All Rights Reserved.