/** * Create a default SCA binding in the case that no binding * is specified by the user * * @param contract * @param definitions */ protected void createSCABinding(Contract contract, Definitions definitions) { SCABinding scaBinding = scaBindingFactory.createSCABinding(); scaBinding.setName(contract.getName()); if (definitions != null) { for (ExtensionType attachPointType : definitions.getBindingTypes()) { if (attachPointType.getType().equals(BINDING_SCA_QNAME)) { ((PolicySubject)scaBinding).setExtensionType(attachPointType); } } } contract.getBindings().add(scaBinding); contract.setOverridingBindings(false); }
/** * Create a default SCA binding in the case that no binding * is specified by the user * * @param contract * @param definitions */ protected void createSCABinding(Contract contract, Definitions definitions) { SCABinding scaBinding = scaBindingFactory.createSCABinding(); scaBinding.setName(contract.getName()); if (definitions != null) { for (ExtensionType attachPointType : definitions.getBindingTypes()) { if (attachPointType.getType().equals(BINDING_SCA_QNAME)) { ((PolicySubject)scaBinding).setExtensionType(attachPointType); } } } contract.getBindings().add(scaBinding); contract.setOverridingBindings(false); }
/** * Create a default SCA binding in the case that no binding * is specified by the user * * @param contract * @param definitions */ protected void createSCABinding(Contract contract, Definitions definitions) { SCABinding scaBinding = scaBindingFactory.createSCABinding(); scaBinding.setName(contract.getName()); if (definitions != null) { for (ExtensionType attachPointType : definitions.getBindingTypes()) { if (attachPointType.getType().equals(BINDING_SCA_QNAME)) { ((PolicySubject)scaBinding).setExtensionType(attachPointType); } } } contract.getBindings().add(scaBinding); contract.setOverridingBindings(false); }
/** * Create a default SCA binding in the case that no binding * is specified by the user * * @param contract * @param definitions */ protected void createSCABinding(Contract contract, Definitions definitions) { SCABinding scaBinding = scaBindingFactory.createSCABinding(); scaBinding.setName(contract.getName()); if (definitions != null) { for (ExtensionType attachPointType : definitions.getBindingTypes()) { if (attachPointType.getType().equals(BINDING_SCA_QNAME)) { ((PolicySubject)scaBinding).setExtensionType(attachPointType); } } } contract.getBindings().add(scaBinding); contract.setOverridingBindings(false); }
} catch (WSDLGenerationException ex) { if (ex.getProblem() != null) { warning(monitor, "WsdlGenProblem", wsBinding, component.getName(), contract.getName()); if (monitor != null) { monitor.problem(ex.getProblem()); warning(monitor, "WsdlGenException", wsBinding, component.getName(), contract.getName()); error(monitor, "WsdlGenException2", wsBinding, (Exception)ex.getCause()); } else { // should never happen warning(monitor, "WsdlGenException", wsBinding, component.getName(), contract.getName()); error(monitor, "WsdlGenException2", wsBinding, component.getName(), contract.getName(), ex.getMessage());
binding.setName(contract.getName()); if (contract instanceof Service) { Monitor.error(monitor, this, Messages.ASSEMBLY_VALIDATION, "MultipleBindingsForService", contract .getName(), binding.getName()); } else { Monitor.error(monitor, Messages.ASSEMBLY_VALIDATION, "MultipleBindingsForReference", contract.getName(), binding.getName()); binding.setName(contract.getName()); Messages.ASSEMBLY_VALIDATION, "MultipleBindingsForServiceCallback", contract.getName(), binding.getName()); } else {
} catch (WSDLGenerationException ex) { if (ex.getProblem() != null) { warning(monitor, "WsdlGenProblem", wsBinding, component.getName(), contract.getName()); if (monitor != null) { monitor.problem(ex.getProblem()); warning(monitor, "WsdlGenException", wsBinding, component.getName(), contract.getName()); error(monitor, "WsdlGenException2", wsBinding, (Exception)ex.getCause()); } else { // should never happen warning(monitor, "WsdlGenException", wsBinding, component.getName(), contract.getName()); error(monitor, "WsdlGenException2", wsBinding, component.getName(), contract.getName(), ex.getMessage());
binding.setName(contract.getName()); if (contract instanceof Service) { Monitor.error(monitor, this, Messages.ASSEMBLY_VALIDATION, "MultipleBindingsForService", contract .getName(), binding.getName()); } else { Monitor.error(monitor, Messages.ASSEMBLY_VALIDATION, "MultipleBindingsForReference", contract.getName(), binding.getName()); binding.setName(contract.getName()); Messages.ASSEMBLY_VALIDATION, "MultipleBindingsForServiceCallback", contract.getName(), binding.getName()); } else {
/** * This code used to be in the activator but has moved here as * the endpoint reference may not now be resolved until the wire * is first used */ private void resolveEndpointReference() { resolve(); eprBinder.bindRunTime(domainRegistry, this); // start the binding provider final ReferenceBindingProvider bindingProvider = getBindingProvider(); if (bindingProvider != null) { // Allow bindings to add shutdown hooks. Requires RuntimePermission shutdownHooks in policy. AccessController.doPrivileged(new PrivilegedAction<Object>() { public Object run() { bindingProvider.start(); return null; } }); } for (PolicyProvider policyProvider : getPolicyProviders()) { policyProvider.start(); } started = true; Contract ref = getReference(); String refName = ref.getName(); if (!refName.startsWith("$self$.") && !refName.startsWith("$sca.client$.") && !ref.isForCallback()) compositeContext.getEndpointRegistry().addEndpointReference(this); // InterfaceContract bindingContract = getBindingInterfaceContract(); // endpoint.setInterfaceContract(bindingContract); }
fatal(monitor, "MissingInterfaceContract", wsBinding, component.getName(), contract.getName());
fatal(monitor, "MissingInterfaceContract", wsBinding, component.getName(), contract.getName());