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() |
org.jboss.weld.serialization.spi.BeanIdentifier |
getIdentifier(int idx) |
Integer |
getIndex(org.jboss.weld.serialization.spi.BeanIdentifier identifier) |
boolean |
isBuilt() |
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 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 void cleanup()
cleanup
in interface org.jboss.weld.bootstrap.api.Service
Copyright © 2016. All rights reserved.