Package org.mule.jbi.servicedesc

Examples of org.mule.jbi.servicedesc.AbstractServiceEndpoint


  protected ServiceEndpoint[] getPossibleEndpoints(MessageExchange me, ServiceEndpoint[] endpoints) {
    List result = new ArrayList();

    for (int i = 0; i < endpoints.length; i++) {
      AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoints[i];
      String compName = se.getComponent();
      RegistryComponent compInfo = container.getRegistry().getComponent(compName);
      if (me.getRole() == MessageExchange.Role.CONSUMER) {
        if (((Component)compInfo.getComponent()).isExchangeWithConsumerOkay(se, me)) {
          result.add(se);
        }
View Full Code Here


      throw new JBIException("Endpoint is already registered");
    }
    if (!(endpoint instanceof InternalEndpointImpl)) {
      throw new IllegalArgumentException("endpoint should be a " + InternalEndpointImpl.class.getName());
    }
    AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
    se.setActive(true);
    this.internalEndpoints.add(se);
  }
View Full Code Here

      throw new JBIException("Endpoint is not registered");
    }
    if (!(endpoint instanceof InternalEndpointImpl)) {
      throw new IllegalArgumentException("endpoint should be a " + InternalEndpointImpl.class.getName());
    }
    AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
    se.setActive(false);
    this.internalEndpoints.remove(se);
  }
View Full Code Here

      throw new JBIException("Endpoint is already registered");
    }
    if (!(endpoint instanceof ExternalEndpointImpl)) {
      throw new IllegalArgumentException("endpoint should be a " + ExternalEndpointImpl.class.getName());
    }
    AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
    se.setActive(true);
    this.externalEndpoints.add(se);
  }
View Full Code Here

      throw new JBIException("Endpoint is not registered");
    }
    if (!(endpoint instanceof ExternalEndpointImpl)) {
      throw new IllegalArgumentException("endpoint should be a " + ExternalEndpointImpl.class.getName());
    }
    AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
    se.setActive(false);
    this.externalEndpoints.remove(se);
  }
View Full Code Here

    // the iterator for a CopyOnWriteArrayList support
    // concurrent modifications.
    // We can not use the Iterator.remove method as it is not
    // supported on the CopyOnWrite iterator.
    for (Iterator it = endpoints.iterator(); it.hasNext();) {
      AbstractServiceEndpoint se = (AbstractServiceEndpoint) it.next();
      if (component.equals(se.getComponent())) {
        endpoints.remove(se);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.mule.jbi.servicedesc.AbstractServiceEndpoint

Copyright © 2018 www.massapicom. 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.