if (logger.isLoggable(quietLogging? Level.FINE : Level.INFO)) logger.log(quietLogging? Level.FINE : Level.INFO, "addDeploymentComposite: " + composite.getURI());
return composite.getURI();
}
public void validateContribution(String contributionURI) throws ContributionReadException, ValidationException {
ContributionDescription cd = getInstalledContribution(contributionURI);
Contribution contribution = loadContribution(cd);
Monitor monitor = deployer.createMonitor();
try {
ArrayList<Contribution> cs = new ArrayList<Contribution>();
cs.add(contribution);
cs.addAll(calculateDependentContributions(cd));
deployer.resolve(cs, null, monitor);
} catch (Exception e) {
loadedContributions.remove(cd.getURI());
throw new RuntimeException(e);
}
try {
monitor.analyzeProblems();
} catch (ValidationException e) {
loadedContributions.remove(cd.getURI());
throw e;
}
if (contribution.getClassLoader() == null && contribution.getModelResolver() instanceof ExtensibleModelResolver) {
ModelResolver o = ((ExtensibleModelResolver)contribution.getModelResolver()).getModelResolverInstance(ClassReference.class);
if (o instanceof ClassLoader) {