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. - Josh _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
