Daniel Rall wrote:

> I believe that the TurbineServices ServiceBroker implementation should
> only allow initialization once.  I propose this patch to it:
<snip>
> It's possible that initServices() should take a Object instead of a
> ServletConfig parameter.

Unfortunately, it's not that simple. It is perfectly valid to call
broker's initSerices() method multiple times, passing *different*
objects into it. The serices that return true from getInit()
will not have their init(Object) methods invoked. On the other
hand, services are free to ignore init(Object) if they don't
care for a particular class or instance of the passed Object.

So, -1 on the patch. This is not the way of solving the problem.

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to