[EMAIL PROTECTED] wrote on 03/22/2007 01:33:01 PM:

> On Thursday 22 March 2007 13:17, Thomas Watson wrote:
> 
> > I'm not sure about the abstract method ApplicationHandle.getState.
> > I also find it strange that there is no defined state for STOPPED.
> > What do you expect to be returned from ApplicationHandle.getState 
after
> > the application has ended?  Returning STOPPING seems strange.
> 
> 
> At first, I was suprised by the lack of STOPPED as well.  However, the
> javadoc does state that ApplicationHandle.getState should throw an
> IllegalStateException if the handle is unregistered.  If that's the 
case,
> defining a STOPPED state wouldn't be very useful for the purpose of
> ApplicationHandle.getState.  It might make sense if the state were
> accessed via ServiceReference.getProperty or the like, although I'm not
> sure how useful that would be in practice.

ah,  You are correct.  Looks like there is a bug in the eclipse 
application
container which implements the Application Admin specification.  Currently 

it does not throw an exception after the service is unregistered instead 
it 
just returns STOPPED.

Tom

> - Josh
> 
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> http://www2.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to