public BuilderContext createBuilderContext() { init(); return new BuilderContext(monitorFactory.createMonitor()); }
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { try { Composite patched = applyXPath(composite, context.getDefinitions(), context.getMonitor()); return patched; } catch (Exception e) { throw new CompositeBuilderException(e); } }
/** * Called by CompositeBindingURIBuilderImpl * * @param composite the composite to be configured */ public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { configureBindingURIs(composite, null, context.getDefinitions(), context.getBindingBaseURIs(), context.getMonitor()); return composite; }
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { return processIncludes(composite, context.getMonitor()); }
Monitor monitor) { if (monitor == null) { monitor = new BuilderContext(extensionPoints).getMonitor();
systemDefinitions = builderContext.getDefinitions(); } else { systemDefinitions = ((RuntimeEndpoint)endpoint).getCompositeContext().getSystemDefinitions(); builderContext = new BuilderContext(monitor);
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { try { Definitions definitions = context.getDefinitions(); if (definitions == null || (definitions.getPolicySets().isEmpty() && definitions.getExternalAttachments().isEmpty()) ) { return composite; } // create a DOM for the Domain Composite Infoset Document document = saveAsDOM(composite); // create a cache of evaluated node against each policy set so we don't // have to keep evaluating policy sets that appear in multiple places Map<PolicySet, List<PolicySubject>> appliesToSubjects = new HashMap<PolicySet, List<PolicySubject>>(); // for all implementations, endpoint and endpoint references check that // the policy sets validly apply return checkAppliesTo(document, appliesToSubjects, composite, context); } catch (Exception e) { throw new CompositeBuilderException(e); } }
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { return processIncludes(composite, context.getMonitor()); }
Monitor monitor) { if (monitor == null) { monitor = new BuilderContext(extensionPoints).getMonitor();
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { try { Definitions definitions = context.getDefinitions(); if (definitions == null || (definitions.getPolicySets().isEmpty() && definitions.getExternalAttachments().isEmpty()) ) { return composite; } // create a DOM for the Domain Composite Infoset Document document = saveAsDOM(composite); // create a cache of evaluated node against each policy set so we don't // have to keep evaluating policy sets that appear in multiple places Map<PolicySet, List<PolicySubject>> appliesToSubjects = new HashMap<PolicySet, List<PolicySubject>>(); // for all implementations, endpoint and endpoint references check that // the policy sets validly apply return checkAppliesTo(document, appliesToSubjects, composite, context); } catch (Exception e) { throw new CompositeBuilderException(e); } }
/** * Create endpoint references for all component references. * * @param composite */ public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { Monitor monitor = context.getMonitor(); // process component references processComponentReferences(composite, monitor); // validate component references validateComponentReferences(composite, monitor); return composite; }
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { try { Composite patched = applyXPath(composite, context.getDefinitions(), context.getMonitor()); return patched; } catch (Exception e) { throw new CompositeBuilderException(e); } }
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { configureStructuralURIs(composite, null, context.getDefinitions(), context.getBindingBaseURIs(), context.getMonitor()); return composite; }
public void setBindingURI(String uri) { binding.setURI(uri); bindingURIaltered = true; BindingBuilder builder = builders.getBindingBuilder(binding.getType()); if (builder != null) { BuilderContext builderContext = new BuilderContext(null, null, null); builder.build(component, reference, binding, builderContext, true); } }
/** * Create endpoint references for all component references. * * @param composite */ public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { Monitor monitor = context.getMonitor(); // process component references processComponentReferences(composite, monitor); // validate component references validateComponentReferences(composite, monitor); return composite; }
protected void resolveAndNormalize(PolicySubject subject, BuilderContext context) { Definitions definitions = context.getDefinitions(); Set<Intent> intents = new HashSet<Intent>(); if (definitions != null) { intents.add(resolved); } else { error(context.getMonitor(), "IntentNotFoundAtBuild", subject, i); } else { warning(context.getMonitor(), "PolicySetNotFoundAtBuild", subject, policySet);
/** * Called by CompositeBindingURIBuilderImpl * * @param composite the composite to be configured */ public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { configureBindingURIs(composite, null, context.getDefinitions(), context.getBindingBaseURIs(), context.getMonitor()); return composite; }
private void build(EndpointReference endpointReference) { BindingBuilder builder = builders.getBindingBuilder(endpointReference.getBinding().getType()); if (builder != null) { builder.build(endpointReference.getComponent(), endpointReference.getReference(), endpointReference.getBinding(), new BuilderContext(extensionPoints), false); } }
private void checkForNoListenerIntent(Endpoint ep, BuilderContext context) { PolicyHelper helper = new PolicyHelper(); if ( helper.getIntent(ep, NOLISTENER_INTENT) != null ) { error(context.getMonitor(), "NoListenerIntentSpecifiedOnService", this, ep.toString()); } }
protected void resolveAndNormalize(PolicySubject subject, BuilderContext context) { Definitions definitions = context.getDefinitions(); Set<Intent> intents = new HashSet<Intent>(); if (definitions != null) { intents.add(resolved); } else { error(context.getMonitor(), "IntentNotFoundAtBuild", subject, i); } else { warning(context.getMonitor(), "PolicySetNotFoundAtBuild", subject, policySet);