On Thursday 09 October 2003 04:08, Yannick Menager wrote:
> The container would generally not call isRunning().... But for example
> if I have an admin console, i would like it to be able to be informed of
> the state of each component. And I would like it to be a *standard* way
> for any Startable Component... be it using a isRunning() type of
> function, or using an event-based system, as long as it's standard :)

Doesn't JMX allow for any method to be viewed? So, if you have isRunning() in 
the component implementation it will show up, won't it? (Not good with JMX, 
but my own ancient similar thing shows all properties that exists in the 
implementing class.)

In any event, it is not possible to introduce isRunning in the Startable 
interface without breaking compatibility, so the option would be a 
sub-interface, and I would suggest that is too much for too little...


Niclas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to