public interface ComponentContextAware
Implementing this interface makes sense for example when a component requires access to a set of collaborating components. Note that configuration via injection of component references is preferable to implementing this interface just for lookup purposes.
| Modifier and Type | Method and Description |
|---|---|
void |
setComponentContext(ComponentContext compCtxt)
Set the component context that has a reference to the Guice injector that
binds this object.
|
void setComponentContext(ComponentContext compCtxt)
Invoked after population of normal component injections but before an init
callback such as Initializable.initialize() or a custom init-method.
compCtxt - the context for lookup of components.Copyright © 2016. All rights reserved.