/** * Initializes the provided JAXWS client component; this is called by the * the JBossWS impl of JAXWS Provider. * * @param obj client component */ public void initialize(Object obj) { if (obj instanceof BindingProvider) { this.initializeBindingProvider((BindingProvider) obj); } }
public void initialize(Object obj) { super.initialize(obj); if (configureProperties) { configurer.setConfigProperties(obj, configFile, configName); } }
protected void setupClient(Object obj, Class<?> seiClass, WebServiceFeature... features) { Binding binding = ((BindingProvider)obj).getBinding(); Client client = obj instanceof DispatchImpl<?> ? ((DispatchImpl<?>)obj).getClient() : ClientProxy.getClient(obj); ClientConfig config = readConfig(seiClass); if (config != null) { CXFClientConfigurer helper = new CXFClientConfigurer(); helper.setupConfigHandlers(binding, config); helper.setConfigProperties(client, config.getProperties()); } client.getOutInterceptors().add(new HandlerChainSortInterceptor(binding)); //add this *after* the config has been set (if any)! if (features != null) { for (WebServiceFeature f : features) { if (f instanceof AbstractClientFeature) { ((AbstractClientFeature)f).initialize(obj); } } } }