> Q. Why use a Set<Injector>? are you planning to use multiple Injectors?
> A. Good question. The thought did cross my mind. But, I don't have any real
> use cases to support a reason for that. The actual reason for the Set had
> more to do with just having a convenient way to access a statically set
> variable from a non static method :) The Set works as a nice little
> container.
I still don't get the point. Whats wrong with doing the following?:
private static Injector injector;
...
protected void initInjector(ServletContext servletContext) {
...
injector=factory.getInjector(servletContext);
...
}
...
public void contextDestroyed(ServletContextEvent servletContextEvent) {
injector=null;
}
> ...I don't want to get in
> the business of trying to stop folks from failing. It is way too much work
> and never pays off :D
Ok, thats true - I sometimes forget about that.
> Q. What do you think about defining a Module[] factory as config param for
> the Lister, so the modules compatible to your framework are not limited to
> the default parameter less constructor?
> A. Great idea. I'll add it to my list of planned features.
Tell me if you need a helping hand
> Q. Are you planing to implement some logging?
> A. I don't have a specific plan. But, I could add that to my list of things
> to add.
I'd like that. Helps a lot if somethings goes wrong.
> Thanks for the feedback
Thanks for the answers!
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users