Examples of ServiceBinding


Examples of javax.xml.registry.infomodel.ServiceBinding

                throw new ServiceNotFoundException("Could not find service with category=" + category + " and serviceName=" + serviceName);
            }
            // Get registry service and business query manager
            Collection<ServiceBinding> serviceBindings = findServiceBindings(service);
            if (serviceBindings.iterator().hasNext()) {
                ServiceBinding serviceBinding = (ServiceBinding) serviceBindings.iterator().next();

                String eprXML = serviceBinding.getAccessURI();
                // for backwards compatibility still have the decoder if
                // unmarchalling fails
                try {
                    epr = EPRHelper.fromXMLString(eprXML);
                } catch (UnmarshalException unme) {
View Full Code Here

Examples of javax.xml.registry.infomodel.ServiceBinding

   
    for (Service s : services) {
      if (aggService == null) {
        aggService = s;
        for (Iterator i = s.getServiceBindings().iterator(); i.hasNext();) {
          ServiceBinding sb = (ServiceBinding) i.next();
          eprHash.put(sb.getAccessURI(), sb);       
                  logger.log(Level.DEBUG, "Found initial binding " + sb.getAccessURI());
        }
      }  else {
        // Transfer unique EPRs over
        Collection bindings = s.getServiceBindings();
        Collection bindingsToRemove = new ArrayList();
        for (Iterator i = bindings.iterator(); i.hasNext();) {
          ServiceBinding sb = (ServiceBinding) i.next();
          try {
            if (eprHash.containsKey(sb.getAccessURI())) {
              logger.log(Level.DEBUG, "Removed binding " + sb.getAccessURI());
              i.remove();
              bindingsToRemove.add(sb.getKey());
            } else {
                      logger.log(Level.DEBUG, "Transferring epr " + sb.getAccessURI());
              i.remove();
              transferEPR(aggService, s, sb, connection);
              eprHash.put(sb.getAccessURI(), sb);
            }
          } catch (JAXRException e) {
            throw e;
          } finally {
            removeBindings(bindingsToRemove, connection);
View Full Code Here

Examples of javax.xml.registry.infomodel.ServiceBinding

      BulkResponse bulkResponse = bqm.findServiceBindings(service.getKey(),findQualifiers,null,specs);
      if (bulkResponse.getStatus()==JAXRResponse.STATUS_SUCCESS){
        serviceBindings = (Collection<ServiceBinding>)bulkResponse.getCollection();
        for (Iterator bindIter = serviceBindings.iterator(); bindIter.hasNext();)
        {
          ServiceBinding binding = (ServiceBinding) bindIter.next();
          Collection<SpecificationLink> bindingSpecs = binding.getSpecificationLinks();         
                SpecificationLink slink = new SpecificationLinkImpl(blm);
                slink.setSpecificationObject(jbossTModel);

          bindingSpecs.add(slink);
        }
View Full Code Here

Examples of nl.clockwork.mule.ebms.model.cpp.cpa.ServiceBinding

            {
              PartyInfo p = new PartyInfo();
              p.getPartyId().addAll(partyInfo.getPartyId());
              CollaborationRole cr = new CollaborationRole();
              cr.setRole(role.getRole());
              cr.setServiceBinding(new ServiceBinding());
              cr.getServiceBinding().setService(role.getServiceBinding().getService());
              cr.getServiceBinding().getCanSend().add(canSend);
              p.getCollaborationRole().add(cr);
              return p;
            }
View Full Code Here

Examples of org.apache.juddi.portlets.client.model.ServiceBinding

             Service service = new Service(
                 businessService.getServiceKey(),
                 EntityForLang.getName(businessService.getName(),lang).getValue(),
                 EntityForLang.getDescription(businessService.getDescription(),lang).getValue());
             for (BindingTemplate bindingTemplate : businessService.getBindingTemplates().getBindingTemplate()) {
               ServiceBinding serviceBinding = new ServiceBinding(
                   bindingTemplate.getBindingKey(),
                   bindingTemplate.getAccessPoint().getValue(),
                   EntityForLang.getDescription(bindingTemplate.getDescription(),lang).getValue(),
                   bindingTemplate.getAccessPoint().getUseType());
               service.getServiceBindings().add(serviceBinding);
View Full Code Here

Examples of org.cloudfoundry.test.haash.model.ServiceBinding

        serviceBinding.setInstanceId(instanceId);

        boolean exists = serviceBindingRepository.exists(id);

        if (exists) {
            ServiceBinding existing = serviceBindingRepository.findOne(id);
            if (existing.equals(serviceBinding)) {
                return new ResponseEntity<Object>(wrapCredentials(existing.getCredentials()), HttpStatus.OK);
            } else {
                return new ResponseEntity<Object>("{}", HttpStatus.CONFLICT);
            }
        } else {
            Credentials credentials = new Credentials();
View Full Code Here

Examples of org.hibernate.service.spi.ServiceBinding

    this.allowCrawling = ConfigurationHelper.getBoolean( ALLOW_CRAWLING, Environment.getProperties(), true );
  }

  @SuppressWarnings({ "unchecked" })
  protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator) {
    final ServiceBinding serviceBinding = new ServiceBinding( this, initiator );
    serviceBindingMap.put( initiator.getServiceInitiated(), serviceBinding );
  }
View Full Code Here

Examples of org.hibernate.service.spi.ServiceBinding

    @SuppressWarnings( {"unchecked"})
  public void destroy() {
    synchronized ( serviceBindingList ) {
      ListIterator<ServiceBinding> serviceBindingsIterator = serviceBindingList.listIterator( serviceBindingList.size() );
      while ( serviceBindingsIterator.hasPrevious() ) {
        final ServiceBinding serviceBinding = serviceBindingsIterator.previous();
        serviceBinding.getLifecycleOwner().stopService( serviceBinding );
      }
      serviceBindingList.clear();
    }
    serviceBindingMap.clear();
  }
View Full Code Here

Examples of org.hibernate.service.spi.ServiceBinding

    prepare();
  }

  @SuppressWarnings({ "unchecked" })
  protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator) {
    serviceBindingMap.put( initiator.getServiceInitiated(), new ServiceBinding( this, initiator ) );
  }
View Full Code Here

Examples of org.hibernate.service.spi.ServiceBinding

  @Override
    @SuppressWarnings( {"unchecked"})
  public void destroy() {
    ListIterator<ServiceBinding> serviceBindingsIterator = serviceBindingList.listIterator( serviceBindingList.size() );
    while ( serviceBindingsIterator.hasPrevious() ) {
      final ServiceBinding serviceBinding = serviceBindingsIterator.previous();
      serviceBinding.getLifecycleOwner().stopService( serviceBinding );
    }
    serviceBindingList.clear();
    serviceBindingList = null;
    serviceBindingMap.clear();
    serviceBindingMap = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.