/** * Find the contribution locations by seraching a resource on the classpath * @param resourceName * @return */ public static List<String> getContributionLocations(String resourceName) { return getContributionLocations(null, resourceName); }
/** * Find the contribution locations by seraching a resource on the classpath * @param resourceName * @return */ public static List<String> getContributionLocations(String resourceName) { return getContributionLocations(null, resourceName); }
public final Node createNode(String compositeURI, ClassLoader classLoader) { List<String> locations = ContributionLocationHelper.getContributionLocations(classLoader, compositeURI); return createNode(compositeURI, locations.toArray(new String[locations.size()])); } /**
public final Node createNode(String compositeURI, ClassLoader classLoader) { List<String> locations = ContributionLocationHelper.getContributionLocations(classLoader, compositeURI); return createNode(compositeURI, locations.toArray(new String[locations.size()])); } /**
/** * 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); }
List<String> locations = getContributionLocations(null, deploymentCompositeURI); if (locations.isEmpty()) { throw new ServiceRuntimeException("No SCA contributions are found on the classpath");
List<String> locations = getContributionLocations(null, deploymentCompositeURI); if (locations.isEmpty()) { throw new ServiceRuntimeException("No SCA contributions are found on the classpath");