cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <daniel.k...@iona.com>
Subject Re: org.apache.cxf.jaxws.EndpointImpl constructor
Date Tue, 23 Jan 2007 21:07:32 GMT
On Tuesday 23 January 2007 03:57, Bharath Ganesh wrote:
> Hi
>
> Currently (in M1 release) the constructor of EndpointImpl looks like
> *public EndpointImpl(Bus b, Object implementor, JaxWsServiceFactoryBean
> serviceFactory).*
>
> Instead it would be better if it takes an AbstractJaxWsServiceFactoryBean
> instead of JaxWsServiceFactoryBean. This would be helpful for Provider
> based endpoints to use this contructor, since JaxWsServiceFactoryBean and
> ProviderServiceFactoryBean are subclasses of
> AbstractJaxWsServiceFactoryBean.
>
> Is this possible?

Not only possible, but definitely more "correct".   The internal field that is 
set actually is an AbstractJaxWsServiceFactoryBean:
private AbstractJaxWsServiceFactoryBean serviceFactory;
.....
this.serviceFactory = serviceFactory;


Nothing in the constructor requires it to be the specific subclass.

I'll go ahead and make that change. 

Thanks!
-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com

Mime
View raw message