/** * Pre-resolve phase for contributions, to set up handling of imports and exports prior to full resolution * @param contributions - the contributions to preresolve * @param resolver - the ModelResolver to use * @throws ContributionResolveException */ protected void contributionsPreresolve(List<Contribution> contributions, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { for (Contribution contribution : contributions) { contributionProcessor.preResolve(contribution, resolver, context); } // end for } // end method contributionsPreresolve
public Contribution loadContribution(URI uri, URL location, Monitor monitor) throws ContributionReadException { init(); ProcessorContext context = new ProcessorContext(monitor); // Load the contribution Contribution contribution = contributionProcessor.read(null, uri, location, context); return contribution; }
/** * Preresolve phase, for ExtendedURLArtifactProcessors only */ @SuppressWarnings("unchecked") public void preResolve( Object model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { URLArtifactProcessor<?> processor = getProcessor(); if( processor instanceof ExtendedURLArtifactProcessor ) { ((ExtendedURLArtifactProcessor)processor).preResolve(model, resolver, context); } // end if } // end method resolve
contributionProcessor.resolve(systemContribution, modelResolver, context); } catch (ContributionResolveException e) { throw new IllegalStateException(e);
/** * Preresolve phase, for ExtendedURLArtifactProcessors only */ @SuppressWarnings("unchecked") public void preResolve( Object model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { URLArtifactProcessor<?> processor = getProcessor(); if( processor instanceof ExtendedURLArtifactProcessor ) { ((ExtendedURLArtifactProcessor)processor).preResolve(model, resolver, context); } // end if } // end method resolve