Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[rap-dev] Some thoughts about the ServiceHandler mechanism

Hi,

Registration of service handlers in RAP applications should be done via
extensions. This should happen in the same time interval when the other
webapp-extensions like phaselisteners or (RWT-)adapterfactories etc. are
registered and should use the same mechanism. As service handlers run in
application scope they should be treated like phaselisteners for
example. In fact there are some changes necessary to the service handler
mechanism to get things working properly using the same approach for all
these web-specific add-ons.

Registration of service handlers for standalone RWT/W4Toolkit
application will be done at the startup of a context using the
RWTServletContextListener . The xml-file approach will be removed and
replaced by configuration in the web.xml. In Equinox environment this is
achieved with the extension mechanism (evaluation of the extension
currently takes place during the initialization of the RAP servlet - I'm
not quite happy with this neither - this probably will be moved to the
workbench bundle's startup and enhanced with some extension
trackers...).

If anybody feels inspired to prepare a patch...

Ciao
Frank


Back to the top