public final Node createNode(String deploymentCompositeURI, String locations[]) { return createNode(deploymentCompositeURI, getContributions(Arrays.asList(locations))); }
/** * The following methods are used by the node launcher */ public final Node createNode(String deploymentCompositeURI, String[] uris, String locations[]) { return createNode(deploymentCompositeURI, getContributions(Arrays.asList(uris), Arrays.asList(locations))); }
/** * The following methods are used by the node launcher */ public final Node createNode(String deploymentCompositeURI, String[] uris, String locations[]) { return createNode(deploymentCompositeURI, getContributions(Arrays.asList(uris), Arrays.asList(locations))); }
public final Node createNode(String deploymentCompositeURI, String locations[]) { return createNode(deploymentCompositeURI, getContributions(Arrays.asList(locations))); }
public final Node createNode(Reader deploymentCompositeContent, String[] uris, String locations[]) { return createNode(deploymentCompositeContent, getContributions(Arrays.asList(uris), Arrays.asList(locations))); }
public final Node createNode(Reader deploymentCompositeContent, String[] uris, String locations[]) { return createNode(deploymentCompositeContent, getContributions(Arrays.asList(uris), Arrays.asList(locations))); }
/** * Creates a new SCA node using defaults for the contribution location and deployable composites. * By default, it uses the Thread context classloader to find META-INF/sca-contribution.xml or * META-INF/sca-contribution-generated.xml on the classpath. The locations that contain such resources * are taken as the SCA contributions. * * @return a new SCA node. */ public Node createNode() { List<String> locations = new ArrayList<String>(); locations.addAll(getContributionLocations(null, SCA_CONTRIBUTION_META)); locations.addAll(getContributionLocations(null, SCA_CONTRIBUTION_GENERATED_META)); if (locations.isEmpty()) { throw new ServiceRuntimeException("No SCA contributions are found on the classpath"); } Contribution[] contributions = getContributions(locations); return createNode(contributions); }
/** * Creates a new SCA node using defaults for the contribution location and deployable composites. * By default, it uses the Thread context classloader to find META-INF/sca-contribution.xml or * META-INF/sca-contribution-generated.xml on the classpath. The locations that contain such resources * are taken as the SCA contributions. * * @return a new SCA node. */ public Node createNode() { List<String> locations = new ArrayList<String>(); locations.addAll(getContributionLocations(null, SCA_CONTRIBUTION_META)); locations.addAll(getContributionLocations(null, SCA_CONTRIBUTION_GENERATED_META)); if (locations.isEmpty()) { throw new ServiceRuntimeException("No SCA contributions are found on the classpath"); } Contribution[] contributions = getContributions(locations); return createNode(contributions); }
public final Node createNode(URI domainRegistryURI, String deploymentCompositeURI, String[] locations) { Contribution[] contributions = getContributions(Arrays.asList(locations)); NodeConfiguration configuration = createConfiguration(contributions); if (deploymentCompositeURI != null && configuration.getContributions().size() > 0) { configuration.getContributions().get(0).addDeploymentComposite(createURI(deploymentCompositeURI)); } configuration.setDomainRegistryURI(domainRegistryURI.toString()); configuration.setDomainURI(getDomainURI(domainRegistryURI)); return createNode(configuration); }
public final Node createNode(URI domainRegistryURI, String deploymentCompositeURI, String[] locations) { Contribution[] contributions = getContributions(Arrays.asList(locations)); NodeConfiguration configuration = createConfiguration(contributions); if (deploymentCompositeURI != null && configuration.getContributions().size() > 0) { configuration.getContributions().get(0).addDeploymentComposite(createURI(deploymentCompositeURI)); } configuration.setDomainRegistryURI(domainRegistryURI.toString()); configuration.setDomainURI(getDomainURI(domainRegistryURI)); return createNode(configuration); }
throw new ServiceRuntimeException("No SCA contributions are found on the classpath"); contributions = getContributions(locations);
throw new ServiceRuntimeException("No SCA contributions are found on the classpath"); contributions = getContributions(locations);