public class BeanIdentifierIndex extends Object implements org.jboss.weld.bootstrap.api.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<javax.enterprise.inject.spi.Bean<?>> beans)
Note that the index can only be built once.
|
void |
cleanup() |
String |
getDebugInfo() |
org.jboss.weld.serialization.spi.BeanIdentifier |
getIdentifier(int idx) |
Integer |
getIndex(org.jboss.weld.serialization.spi.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(org.jboss.weld.serialization.spi.BeanIdentifier identifier)
identifier
- public org.jboss.weld.serialization.spi.BeanIdentifier getIdentifier(int idx)
idx
- public Integer getIndexHash()
Arrays.hashCode(Object[])
public void build(Set<javax.enterprise.inject.spi.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()
cleanup
in interface org.jboss.weld.bootstrap.api.Service
public String getDebugInfo()
Copyright © 2021. All rights reserved.