| org.jicarilla.container.builder.Builder
All known Subclasses: org.jicarilla.container.builder.DefaultBuilder,
Method Summary | |
Builder | addComponent(Object provider) Add a new component provider to the container.
Parameters: provider - the provider to add. | Builder | addComponent(Object selectionCriterion, Object provider) Add a new component provider to the container.
Parameters: selectionCriterion - the criterion to apply to the provider whendetermining what instances it can provide. Parameters: provider - the provider to add. | Resolver | create() Actually create the container instance and populate it with all
the providers you have fed to the builder. | Resolver | getResolver() |
addComponent | Builder addComponent(Object provider)(Code) | | Add a new component provider to the container.
Parameters: provider - the provider to add. the current builder instance. |
addComponent | Builder addComponent(Object selectionCriterion, Object provider)(Code) | | Add a new component provider to the container.
Parameters: selectionCriterion - the criterion to apply to the provider whendetermining what instances it can provide. Parameters: provider - the provider to add. the current builder instance. |
create | Resolver create() throws Exception(Code) | | Actually create the container instance and populate it with all
the providers you have fed to the builder. You may not call any
more methods on a Builder instance after you have
called this method.
a Resolver retrieved from the constructed container. throws: Exception - if a problem occurs during the creation or populationof the container or during the retrieval of the resolver from thecontainer, or if the builder itself is in an illegal state. |
|
|