/** * Create a new SCAInvoker for invoking local endpoints. * @param config binding configuration model */ public SCAInvoker(SCABindingModel config) { _bindingName = config.getName(); _referenceName = config.getReference().getName(); _targetService = config.getTarget(); _targetNamespace = config.getTargetNamespace(); _clustered = config.isClustered(); _preferLocal = config.isPreferLocal(); }
private String getComponentImplementationType(ComponentModel componentModel) { ComponentImplementationModel implementationModel = componentModel.getImplementation(); if (implementationModel == null) { return null; } return implementationModel.getType(); }
/** * Constructs a new V1CompositeServiceModel. */ public V1CompositeServiceModel() { super(SCANamespace.DEFAULT.uri(), CompositeServiceModel.SERVICE); }
/** * {@inheritDoc} */ @Override public boolean versionMatches(Namespace namespace) { return _util.versionMatches(namespace); }
/** * {@inheritDoc} */ @Override public String uri() { return _util.uri(); }
/** * {@inheritDoc} */ @Override public boolean uriMatches(Namespace namespace) { return _util.uriMatches(namespace); }
/** * Gets the SCANamespace for the specified uri, or null if no matching uris are found. * @param uri the uri * @return the SCANamespace */ public static SCANamespace fromUri(String uri) { return Util.fromUri(SCANamespace.class, uri); }
/** * Constructs a new SCANamespace with the specified version. * @param version the specified version, or null to discover the default */ SCANamespace(String version) { _util = new Util(version); }
/** * {@inheritDoc} */ @Override public String version() { return _util.version(); }
/** * {@inheritDoc} */ @Override public boolean isDefault() { return this == DEFAULT || uriMatches(DEFAULT); }
/** * {@inheritDoc} */ @Override public String section() { return _util.section(); }
/** * Create a new SCAInvoker for invoking local endpoints. * @param config binding configuration model */ public SCAInvoker(SCABindingModel config) { _bindingName = config.getName(); _referenceName = config.getReference().getName(); _targetService = config.getTarget(); _targetNamespace = config.getTargetNamespace(); _clustered = config.isClustered(); _preferLocal = config.isPreferLocal(); }
/** * Create a new V1SCABindingModel. * @param switchyardNamespace switchyardNamespace */ public V1SCABindingModel(String switchyardNamespace) { super(SCABindingModel.SCA, SCANamespace.DEFAULT.uri()); _switchyardNamespace = switchyardNamespace; }
/** * Constructs a new V1ComponentReferenceModel. * @param switchyardNamespace switchyardNamespace */ public V1ComponentReferenceModel(String switchyardNamespace) { super(SCANamespace.DEFAULT.uri(), ComponentReferenceModel.REFERENCE); _switchyardNamespace = switchyardNamespace; }
/** * Default constructor for application use. */ public V1BPELComponentImplementationModel() { super(BPEL, SCANamespace.DEFAULT.uri()); }
/** * Creates a new, empty interface model of the specified type. * @param type interface type */ public V1InterfaceModel(String type) { this(type, SCANamespace.DEFAULT.uri()); }
/** * Constructs a new V1ComponentServiceModel. * @param switchyardNamespace switchyardNamespace */ public V1ComponentServiceModel(String switchyardNamespace) { super(SCANamespace.DEFAULT.uri(), ComponentServiceModel.SERVICE); _switchyardNamespace = switchyardNamespace; }
/** * Constructs a new V1ComponentImplementationModel of the specified "type". * @param type the "type" of ComponentImplementationModel */ public V1ComponentImplementationModel(String type) { this(type, SCANamespace.DEFAULT.uri()); }
/** * Default constructor for application use. */ public V1BPELComponentImplementationModel() { super(BPEL, SCANamespace.DEFAULT.uri()); }