Examples of ContributionResolveException


Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

                            }
                        }
                    }
                }
            } catch ( PolicyValidationException e ) {
                throw new ContributionResolveException("PolicyValidation exceptions when processing service/reference '"
                                                       + contract.getName() + "' in '" + parentName + "'");
            }
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

        String factoryName = importSDO.getFactoryClassName();
        if (factoryName != null) {
            ClassReference reference = new ClassReference(factoryName);
            ClassReference resolved = resolver.resolveModel(ClassReference.class, reference);
            if (resolved == null || resolved.isUnresolved()) {
                ContributionResolveException loaderException =
                    new ContributionResolveException("Fail to resolve class: " + factoryName);
                throw loaderException;
            }
            try {
                Class<?> factoryClass = resolved.getJavaClass();
                register(factoryClass, importSDO.getHelperContext());
            } catch (Exception e) {
                throw new ContributionResolveException(e);
            }
            importSDO.setUnresolved(false);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

    public void resolve(BPELImplementation impl, ModelResolver resolver) throws ContributionResolveException {
        if( impl != null && impl.isUnresolved()) {
            BPELProcessDefinition processDefinition = resolveBPELProcessDefinition(impl, resolver);
            if(processDefinition.isUnresolved()) {
                throw new ContributionResolveException("Can't find BPEL Process : " + processDefinition.getName());
            }
           
            impl.setProcessDefinition(processDefinition);
           
            //resolve component type
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

                //introspect implementation
                WidgetImplementationIntrospector widgetIntrospector = new WidgetImplementationIntrospector(assemblyFactory, implementation);
                widgetIntrospector.introspectImplementation();

            } catch (IOException e) {
                throw new ContributionResolveException(e);
            }
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

                if (providedIntent.isUnresolved()) {
                    Intent resolvedProvidedIntent = resolver.resolveModel(Intent.class, providedIntent);
                    if (resolvedProvidedIntent != null) {
                        providedIntents.add(resolvedProvidedIntent);
                    } else {
                        throw new ContributionResolveException("Provided Intent - " + providedIntent
                            + " not found for PolicySet "
                            + policySet);

                    }
                } else {
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

                Intent resolvedMappedIntent = resolver.resolveModel(Intent.class, mappedIntent);
   
                if (resolvedMappedIntent != null) {
                    mappedPolicies.put(resolvedMappedIntent, entry.getValue());
                } else {
                    throw new ContributionResolveException("Mapped Intent - " + mappedIntent
                        + " not found for PolicySet "
                        + policySet);
   
                }
            } else {
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

            if (referredPolicySet.isUnresolved()) {
                PolicySet resolvedReferredPolicySet = resolver.resolveModel(PolicySet.class, referredPolicySet);
                if (resolvedReferredPolicySet != null) {
                    referredPolicySets.add(resolvedReferredPolicySet);
                } else {
                    throw new ContributionResolveException("Referred PolicySet - " + referredPolicySet
                        + "not found for PolicySet - "
                        + policySet);
                }
            } else {
                referredPolicySets.add(referredPolicySet);
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

                if (requiredIntent.isUnresolved()) {
                    Intent resolvedRequiredIntent = resolver.resolveModel(Intent.class, requiredIntent);
                    if (resolvedRequiredIntent != null) {
                        requiredIntents.add(resolvedRequiredIntent);
                    } else {
                        throw new ContributionResolveException(
                                                                 "Required Intent - " + requiredIntent
                                                                     + " not found for ProfileIntent "
                                                                     + policyIntent);

                    }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

                Intent resolvedQualifiableIntent = resolver.resolveModel(Intent.class, qualifiableIntent);
   
                if (resolvedQualifiableIntent != null) {
                    policyIntent.setQualifiableIntent(resolvedQualifiableIntent);
                } else {
                    throw new ContributionResolveException("Qualifiable Intent - " + qualifiableIntent
                        + " not found for QualifiedIntent "
                        + policyIntent);
                }
   
            }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionResolveException

        if (providedIntent.isUnresolved()) {
          providedIntent = resolver.resolveModel(Intent.class, providedIntent);
          if (!providedIntent.isUnresolved()) {
            alwaysProvided.add(providedIntent);
          } else {
            throw new ContributionResolveException(
                "Always Provided Intent - " + providedIntent
                    + " not found for ExtensionType "
                    + extensionType);

          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.