T
- A type reference to be used to uniquely identify the dependency. This is typically the same class
which declares the InitBallot, but not necessarily. If more than component injects an
InitBallot with the same type parameter, they will all represent the same dependency.public interface InitBallot<T>
voteForInit()
to indicate that it is okay to proceed with initialization. The class must be parameterized with a class which
represents the startup dependency.
The container imposes a fixed amount of time for which there must be a call to voteForInit()
. If the call
is not made within this time period, then the dependency will be deemed unsatisified and the container will produce
an error.
Modifier and Type | Method and Description |
---|---|
void |
voteForInit()
When called, the class's lock on the startup procedure for framework services is released.
|
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.