Christian Schneider created DOSGI-148:
-----------------------------------------
Summary: Refactoring of dsw ConfigTypeHandlers
Key: DOSGI-148
URL: https://issues.apache.org/jira/browse/DOSGI-148
Project: CXF Distributed OSGi
Issue Type: Improvement
Components: DSW
Affects Versions: 1.3.1
Reporter: Christian Schneider
Assignee: Christian Schneider
Fix For: 1.4
The Hierarchy of ConfigTypeHandlers is currently a bit confusing.
There are:
- PojoConfigurationTypeHandler : For SOAP with Simple and JAXWS binding but
without HTTP context support
- JaxRSPojoConfigurationTypeHandler : For JAXRS but without HTTP context support
- WsdlConfigurationTypeHandler: For WSDL first SOAP. Supports HTTP context
- JaxRSHttpServiceConfigurationTypeHandler: For JAXRS. Supports HTTP context
- HttpServiceConfigurationTypeHandler: For SOAP with Simple and JAXWS binding
with HTTP context support
I propose to factor out the HTTP context handling to a new class
HTTPServiceManager. That only registers and unregisters the servlet and context.
So the ConfigTypeHandlers will just be:
- PojoConfigurationTypeHandler : For SOAP with Simple and JAXWS binding
- JaxRSPojoConfigurationTypeHandler : For JAXRS
- WsdlConfigurationTypeHandler: For WSDL first SOAP
All handlers will delegate to the HTTPServiceManager if a context is configured.
This should also remove some code duplications.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira