public void resolve(ContributionMetadata contribution, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { staxProcessor.resolve(contribution, resolver, context); }
public void resolve(Definitions scaDefinitions, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { extensionProcessor.resolve(scaDefinitions, resolver, context); }
public void resolve(ComponentType componentType, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { extensionProcessor.resolve(componentType, resolver, context); }
public void resolve(Definitions scaDefinitions, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { extensionProcessor.resolve(scaDefinitions, resolver, context); }
public void resolve(ComponentType componentType, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { extensionProcessor.resolve(componentType, resolver, context); }
public void resolve(ContributionMetadata contribution, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { staxProcessor.resolve(contribution, resolver, context); }
public void resolve(Endpoint model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // the only thing we'll resolve here is the policy model as the endpoint // matching algorithm needs to look inside the policy model for (PolicySet policySet : model.getPolicySets()){ extensionProcessor.resolve(policySet, resolver, context); } } }
public void resolve(Endpoint model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // the only thing we'll resolve here is the policy model as the endpoint // matching algorithm needs to look inside the policy model for (PolicySet policySet : model.getPolicySets()){ extensionProcessor.resolve(policySet, resolver, context); } } }
@SuppressWarnings("unchecked") public void resolve(Object model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // Delegate to the processor associated with the model type if (model != null) { StAXArtifactProcessor processor = processors.getProcessor(model.getClass()); if (processor != null) { processor.resolve(model, resolver, context); } } }
@SuppressWarnings("unchecked") public void resolve(Object model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { getProcessor().resolve(model, resolver, context); }
/** * Resolves the Imports of the contribution * @param contribution * @param resolver */ private void resolveImports(Contribution contribution, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { for (Import import_ : contribution.getImports()) { extensionProcessor.resolve(import_, resolver, context); } // end for } // end method resolveImports
/** * Resolves the Imports of the contribution * @param contribution * @param resolver */ private void resolveImports(Contribution contribution, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { for (Import import_ : contribution.getImports()) { extensionProcessor.resolve(import_, resolver, context); } // end for } // end method resolveImports
@SuppressWarnings("unchecked") public void resolve(Object model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // Delegate to the processor associated with the model type if (model != null) { StAXArtifactProcessor processor = processors.getProcessor(model.getClass()); if (processor != null) { processor.resolve(model, resolver, context); } } }
@SuppressWarnings("unchecked") public void resolve(Object model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { getProcessor().resolve(model, resolver, context); }
/** * Resolve interface and callback interface on a list of abstract contracts. * @param contracts the list of contracts * @param resolver the resolver to use to resolve models * @param context TODO */ protected <C extends AbstractContract> void resolveAbstractContracts(List<C> contracts, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { for (AbstractContract contract : contracts) { // Resolve the interface contract InterfaceContract interfaceContract = contract.getInterfaceContract(); if (interfaceContract != null) { extensionProcessor.resolve(interfaceContract, resolver, context); } } }
private void resolvePolicies(PolicySet policySet, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { boolean unresolved = false; if (policySet != null) { for (Object o : policySet.getPolicies()) { extensionProcessor.resolve(o, resolver, context); /*if ( o instanceof Policy && ((Policy)o).isUnresolved() ) { unresolved = true; }*/ } policySet.setUnresolved(unresolved); } }
private void resolvePolicies(PolicySet policySet, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { boolean unresolved = false; if (policySet != null) { for (Object o : policySet.getPolicies()) { extensionProcessor.resolve(o, resolver, context); /*if ( o instanceof Policy && ((Policy)o).isUnresolved() ) { unresolved = true; }*/ } policySet.setUnresolved(unresolved); } }
/** * Resolves the Exports of the contribution * @param contribution * @param resolver */ private void resolveExports(Contribution contribution, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { for (Export export : contribution.getExports()) { if (export instanceof DefaultExport) { // Initialize the default export's resolver export.setModelResolver(resolver); } else { extensionProcessor.resolve(export, resolver, context); } // end if } // end for } // end method resolveExports
public void resolve(Composite composite, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { try { if (composite != null) extensionProcessor.resolve(composite, resolver, context); } catch (Throwable e ) { // Add information about which composite was being processed when the exception occurred String newMessage = context.getMonitor().getMessageString(CompositeDocumentProcessor.class.getName(), Messages.RESOURCE_BUNDLE, "ProcessingComposite") + " " + composite.getName() + ": " + e.getMessage(); throw new ContributionResolveException( newMessage, e ); } // end try }
public void resolve(Composite composite, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { try { if (composite != null) extensionProcessor.resolve(composite, resolver, context); } catch (Throwable e ) { // Add information about which composite was being processed when the exception occurred String newMessage = context.getMonitor().getMessageString(CompositeDocumentProcessor.class.getName(), Messages.RESOURCE_BUNDLE, "ProcessingComposite") + " " + composite.getName() + ": " + e.getMessage(); throw new ContributionResolveException( newMessage, e ); } // end try }