/** * Copies extensors from the Binding to BindingInfo. * @param service * @param binding * @param ns */ public BindingInfo createBindingInfo(ServiceInfo service, Binding binding, String ns) { BindingInfo bi = createBindingInfo(service, ns, null); return initializeBindingInfo(service, binding, bi); }
public void setActivationNamespaces(Collection<String> activationNamespaces) { this.activationNamespaces = activationNamespaces; registerWithBindingManager(); }
/** * Creates a "default" BindingInfo object for the service. Can return a subclass * which can then process the extensors within the subclass. By default, just * creates it for the first ServiceInfo in the service */ public BindingInfo createBindingInfo(Service service, String namespace, Object config) { BindingInfo bi = createBindingInfo(service.getServiceInfos().get(0), namespace, config); if (bi.getName() == null) { bi.setName(new QName(service.getName().getNamespaceURI(), service.getName().getLocalPart() + "Binding")); } return bi; }
private void copyExtensors(AbstractPropertiesHolder info, ElementExtensible extElement, BindingOperationInfo bop) { if (info != null) { for (ExtensibilityElement ext : cast(extElement.getExtensibilityElements(), ExtensibilityElement.class)) { info.addExtensor(ext); if (bop != null && extElement instanceof BindingInput) { addMessageFromBinding(ext, bop, true); } if (bop != null && extElement instanceof BindingOutput) { addMessageFromBinding(ext, bop, false); } } } }
protected BindingInfo initializeBindingInfo(ServiceInfo service, Binding binding, BindingInfo bi) { bi.setName(binding.getQName()); copyExtensors(bi, binding, null); copyExtensors(bop2, bop, bop2); if (bop.getBindingInput() != null) { copyExtensors(bop2.getInput(), bop.getBindingInput(), bop2); copyExtensors(bop2.getOutput(), bop.getBindingOutput(), bop2); + " must have a name attribute."); copyExtensors(bop2.getFault(new QName(service.getTargetNamespace(), f.getName())), bop.getBindingFault(f.getName()), bop2);
public void addListener(Destination d, Endpoint e) { synchronized (d) { if (d.getMessageObserver() != null) { throw new ServiceConstructionException(new Message("ALREADY_RUNNING", LOG, e.getEndpointInfo().getAddress())); } super.addListener(d, e); } }
/** * Creates a "default" BindingInfo object for the service. Can return a subclass * which can then process the extensors within the subclass. By default, just * creates it for the first ServiceInfo in the service */ public BindingInfo createBindingInfo(Service service, String namespace, Object config) { BindingInfo bi = createBindingInfo(service.getServiceInfos().get(0), namespace, config); if (bi.getName() == null) { bi.setName(new QName(service.getName().getNamespaceURI(), service.getName().getLocalPart() + "Binding")); } return bi; }
private void copyExtensors(AbstractPropertiesHolder info, ElementExtensible extElement, BindingOperationInfo bop) { if (info != null) { for (ExtensibilityElement ext : cast(extElement.getExtensibilityElements(), ExtensibilityElement.class)) { info.addExtensor(ext); if (bop != null && extElement instanceof BindingInput) { addMessageFromBinding(ext, bop, true); } if (bop != null && extElement instanceof BindingOutput) { addMessageFromBinding(ext, bop, false); } } } }
protected BindingInfo initializeBindingInfo(ServiceInfo service, Binding binding, BindingInfo bi) { bi.setName(binding.getQName()); copyExtensors(bi, binding, null); copyExtensors(bop2, bop, bop2); if (bop.getBindingInput() != null) { copyExtensors(bop2.getInput(), bop.getBindingInput(), bop2); copyExtensors(bop2.getOutput(), bop.getBindingOutput(), bop2); + " must have a name attribute."); copyExtensors(bop2.getFault(new QName(service.getTargetNamespace(), f.getName())), bop.getBindingFault(f.getName()), bop2);
public BindingInfo createBindingInfo(ServiceInfo si, String bindingid, Object config) { BindingInfo info = super.createBindingInfo(si, bindingid, config); if (config instanceof ObjectBindingConfiguration) { ObjectBindingConfiguration c = (ObjectBindingConfiguration) config; info.setProperty(RUN_NON_LOGICAL, c.isNonLogicalPhasesEnabled()); } info.setName(new QName(si.getName().getNamespaceURI(), si.getName().getLocalPart() + "ObjectBinding")); for (OperationInfo o : si.getInterface().getOperations()) { BindingOperationInfo bop = info.buildOperation(o.getName(), o.getInputName(), o.getOutputName()); info.addOperation(bop); } return info; }
/** * Copies extensors from the Binding to BindingInfo. * @param service * @param binding * @param ns */ public BindingInfo createBindingInfo(ServiceInfo service, Binding binding, String ns) { BindingInfo bi = createBindingInfo(service, ns, null); return initializeBindingInfo(service, binding, bi); }
public AbstractBindingFactory(Bus b) { bus = b; registerWithBindingManager(); }
boolean onlyExtensors = false; if (factory instanceof AbstractBindingFactory) { bi = ((AbstractBindingFactory)factory).createBindingInfo(service, ns.toString(), null); onlyExtensors = true; } else {
public AbstractBindingFactory(Bus b, Collection<String> ns) { activationNamespaces = ns; bus = b; registerWithBindingManager(); }
public AbstractBindingFactory(Bus b, Collection<String> ns) { activationNamespaces = ns; bus = b; registerWithBindingManager(); }
public void setActivationNamespaces(Collection<String> activationNamespaces) { this.activationNamespaces = activationNamespaces; registerWithBindingManager(); }
public AbstractBindingFactory(Bus b) { bus = b; registerWithBindingManager(); }
@Resource public void setBus(Bus bus) { if (this.bus != bus) { this.bus = bus; registerWithBindingManager(); } }
@Resource public void setBus(Bus bus) { if (this.bus != bus) { this.bus = bus; registerWithBindingManager(); } }