|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContainerBuilder
Implementors of this interface will be called when populating PicoContainers with components. Methods would generally look like:
container.registerComponentImplementation(SomeObject.class);
The use of this method was prefered over nanocontainer's approach of using external scripting languages for flexibility. Using this method allows for stricter compile time checks.
NOTE: do not register the following classes or implementors into the containers as they are used by the system:
| Method Summary | |
|---|---|
void |
buildApplicationLevelContainer(MutablePicoContainer container)
This method registers components in the application level. |
void |
buildRequestLevelContainer(MutablePicoContainer container)
This method registers components per request. |
void |
buildSessionLevelContainer(MutablePicoContainer container)
This method registers components in the session level. |
| Method Detail |
|---|
void buildApplicationLevelContainer(MutablePicoContainer container)
ServletContext. Please note that there one
ServletContext created for every virtual machine so ensure that
components for this container are not meant to be shared.
container - the container to populate.void buildRequestLevelContainer(MutablePicoContainer container)
container - the container to populate.void buildSessionLevelContainer(MutablePicoContainer container)
HttpSession. This is created once per
session, but it is replicated across all nodes in a cluster so do not
make this too big.
container - the container to populate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||