Examples of ConfigurationObject


Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        }
    }

    protected void resolveTarget(Target target, List<ConfigurationObject> providers) {
        if (target.getEndpointRef() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENDPOINT,
                    target.getEndpointRef()), providers);
        }

        if (target.getSequenceRef() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_SEQUENCE,
                    target.getSequenceRef()), providers);
        }

        if (target.getEndpoint() != null && target.getEndpoint() instanceof IndirectEndpoint) {
            IndirectEndpoint indirectEndpoint = (IndirectEndpoint) target.getEndpoint();
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENDPOINT,
                    indirectEndpoint.getKey()), providers);
        }

        if (target.getSequence() != null) {
            DependencyResolver resolver = DependencyResolverFactory.getInstance().
View Full Code Here

Examples of org.wso2.carbon.sequences.common.to.ConfigurationObject

            if (tempDependents != null && tempDependents.length > 0) {
                List<ConfigurationObject> dependents = new ArrayList<ConfigurationObject>();
                for (int i = 0; i < tempDependents.length; i++) {
                    if (tempDependents[i].getType() !=
                            org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject.TYPE_UNKNOWN) {
                        dependents.add(new ConfigurationObject(tempDependents[i].getType(),
                            tempDependents[i].getId()));
                    }
                }

                if (dependents.size() > 0) {
View Full Code Here

Examples of org.wso2.carbon.sequences.common.to.ConfigurationObject

            org.wso2.carbon.sequences.stub.types.common.to.ConfigurationObject[] tempDependents =
                    sequenceAdminStub.getDependents(sequence);
            if (tempDependents != null && tempDependents.length > 0 && tempDependents[0] != null) {
                ConfigurationObject[] dependents = new ConfigurationObject[tempDependents.length];
                for (int i = 0; i < dependents.length; i++) {
                    dependents[i] = new ConfigurationObject(tempDependents[i].getType(),
                            tempDependents[i].getResourceId());
                }
                return dependents;
            }
        } catch (Exception e) {
View Full Code Here

Examples of spock.config.ConfigurationObject

    initializeConfigurations(initialConfigurations);
  }

  private void initializeConfigurations(List<?> initialConfigurations) {
    for (Object configuration : initialConfigurations) {
      ConfigurationObject annotation = configuration.getClass().getAnnotation(ConfigurationObject.class);
      if (annotation == null) {
        throw new InternalSpockError("Not a @ConfigurationObject: %s").withArgs(configuration.getClass());
      }
      configurationsByType.put(configuration.getClass(), configuration);
      configurationsByName.put(annotation.value(), configuration);
    }
  }
View Full Code Here

Examples of spock.config.ConfigurationObject

    }
  }

  public void configureExtension(Object extension) {
    for (Field field : extension.getClass().getDeclaredFields()) {
      ConfigurationObject annotation = field.getType().getAnnotation(ConfigurationObject.class);
      if (annotation != null) {
        injectConfiguration(field, annotation.value(), extension);
      }
    }
  }
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.