|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides a convenient way to construct and initialize a
Container.
| Method Summary | |
Builder |
addComponent(java.lang.Object provider)
Add a new component provider to the container. |
Builder |
addComponent(java.lang.Object selectionCriterion,
java.lang.Object provider)
Add a new component provider to the container. |
Resolver |
create()
Actually create the container instance and populate it with all the providers you have fed to the builder. |
| Method Detail |
public Resolver create()
throws java.lang.Exception
Builder instance after you have
called this method.
Resolver retrieved from the constructed container.
java.lang.Exception - if a problem occurs during the creation or population
of the container or during the retrieval of the resolver from the
container, or if the builder itself is in an illegal state.public Builder addComponent(java.lang.Object provider)
provider - the provider to add.
public Builder addComponent(java.lang.Object selectionCriterion,
java.lang.Object provider)
selectionCriterion - the criterion to apply to the provider when
determining what instances it can provide.provider - the provider to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||