Package org.eclipse.ecf.remoteservice

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceContainer


        // first on in the array)
        String selectedConfig = selectLocalImportedConfig(
            localImportedConfigs, importedConfigProperties);
        // If we have one to use, then create the container
        if (selectedConfig != null) {
          IRemoteServiceContainer rsContainer = createContainer(
              desc,
              selectedConfig,
              PropertiesUtil
                  .createMapFromDictionary(importedConfigProperties));
          if (rsContainer != null) {
            trace("createAndConfigureProxyContainers", //$NON-NLS-1$
                "created new proxy container with config type=" //$NON-NLS-1$
                    + selectedConfig + " and id=" //$NON-NLS-1$
                    + rsContainer.getContainer().getID());
            return rsContainer;
          }
        }
      }
    }
View Full Code Here


    ID endpointContainerID = endpointDescription.getContainerID();

    // Get connect targetID
    ID connectTargetID = endpointDescription.getConnectTargetID();

    IRemoteServiceContainer rsContainer = (reuseExistingContainers) ? selectExistingConsumerContainer(
        endpointContainerID, serviceImportedConfigs, connectTargetID)
        : null;

    // If we haven't found any existing containers then we create one
    // from the remoteSupportedConfigs...*iff* autoCreateContainer is
View Full Code Here

      logError("importService",errorMessage,new SelectContainerException(errorMessage,null,null)); //$NON-NLS-1$
      // As specified in section 122.5.2, return null
      return null;
    }
    // Select the rsContainer to handle the endpoint description
    IRemoteServiceContainer rsContainer = null;
    try {
      rsContainer = AccessController
          .doPrivileged(new PrivilegedExceptionAction<IRemoteServiceContainer>() {
            public IRemoteServiceContainer run()
                throws SelectContainerException {
View Full Code Here

          serviceExportedInterfaces, requiredIntents, descriptions,
          results);
    } else {
      // See if we have a match
      for (int i = 0; i < descriptions.length; i++) {
        IRemoteServiceContainer matchingContainer = createMatchingContainer(
            descriptions[i], serviceReference, properties,
            serviceExportedInterfaces, requiredConfigs,
            requiredIntents);
        if (matchingContainer != null)
          results.add(matchingContainer);
View Full Code Here

      ContainerTypeDescription[] descriptions, Collection results)
      throws SelectContainerException {
    ContainerTypeDescription[] ctds = getContainerTypeDescriptionsForDefaultConfigTypes(descriptions);
    if (ctds != null) {
      for (int i = 0; i < ctds.length; i++) {
        IRemoteServiceContainer matchingContainer = createMatchingContainer(
            ctds[i], serviceReference, properties,
            serviceExportedInterfaces, null, requiredIntents);
        if (matchingContainer != null)
          results.add(matchingContainer);
      }
View Full Code Here

  protected IRemoteServiceContainer createContainer(
      ContainerTypeDescription containerTypeDescription,
      String containerTypeDescriptionName,
      @SuppressWarnings("rawtypes") Map properties)
      throws SelectContainerException {
    IRemoteServiceContainer result = super.createContainer(
        containerTypeDescription, containerTypeDescriptionName,
        properties);

    ISharedObjectContainerClient client = (ISharedObjectContainerClient) result
        .getContainer().getAdapter(ISharedObjectContainerClient.class);
    if (client != null) {
      client.setConnectInitiatorPolicy(new IConnectInitiatorPolicy() {
        public void refresh() {
        }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservice.IRemoteServiceContainer

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.