>But, I have a problem:
> when and where to initialize the PicoContainer? I need some
>components in global , but some others partial. So when should I
>create the pico instance.
>The code is under developments now. I haven’t done the whole code
yet.
>Sorry again for my poor English. Am I make myself understood?
>I hope anyone who can talk and discuss it with me. You will be the
>most helpful.
It depends of your environment.
There is nanocontainer integration in web-tier & webwork 1.x
Works fine for me. ( Basically you get 3 containers - application ,
session & request scope )
Request scope basically implements thread local semantics, since it's
kicked at the end of request.
And you can move thread-local semantics out of your "session provider" -
it can be pico component adapter, or special refenrence kind. |