[
https://issues.apache.org/jira/browse/CXF-791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512874
]
willem Jiang commented on CXF-791:
----------------------------------
I think it is because the DI (dependency injection) things, you can't assume
the runtime things, because you can't decide if the JettyHTTPServerEngin's
instance is created in your code.
If you want to create a subclass of the JettyHTTPServerEngineFactory , you have
to create a sub class of JettyHTTPTransportFactory, because the
JettyHTTPServerEngin and JettyHTTPTransportFactory are too close, and there
just hard code to combine them together.
> JettyHTTPServerEngineFactory.createJettyHTTPServerEngine should be protected
> ----------------------------------------------------------------------------
>
> Key: CXF-791
> URL: https://issues.apache.org/jira/browse/CXF-791
> Project: CXF
> Issue Type: Bug
> Components: Transports
> Affects Versions: 2.0
> Reporter: benson margulies
>
> According to comments in
> JettyHTTPTransportEngine.getyJettyHTTPServerEngineFactory, the server factory
> must come off the bus. So, a person who wanted to customize the server engine
> factory would subclass the standard server engine factory and place the
> object of the specialized type on the bus.
> Sadly, this won't work, since the create method in the summary is not
> protected, but rather package default, and so a subclassed
> ServerEngineDactory is pretty comprehensively prevented from being even
> faintly useful.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.