Package org.apache.tuscany.sca.contribution.service

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


                if (reader.hasNext()) {
                    reader.next();
                }
            }
        } catch (XMLStreamException e) {
            ContributionReadException ex = new ContributionReadException(e);
            error("XMLStreamException", reader, ex);
        }

        return contribution;
    }
View Full Code Here


            return contribution;

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

                    reader.next();
                }
            }
        }
        catch (XMLStreamException e) {
            ContributionReadException ex = new ContributionReadException(e);
            error("XMLStreamException", reader, ex);
        }
       
        return javaImport;
    }
View Full Code Here

                    reader.next();
                }
            }
        }
        catch (XMLStreamException e) {
            ContributionReadException ex = new ContributionReadException(e);
            error("XMLStreamException", reader, ex);
        }
       
        return constrainingType;
    }
View Full Code Here

                    reader.next();
                }
            }
        }
        catch (XMLStreamException e) {
            ContributionReadException ex = new ContributionReadException(e);
            error("XMLStreamException", reader, ex);
        }
       
        return javaExport;
    }
View Full Code Here

                }
            }
            return (T) model;

        } catch (Exception e) {
          ContributionReadException ce = new ContributionReadException(e);
          error("ContributionReadException", reader, ce);
            throw ce;
        }
    }
View Full Code Here

//            }
           
            return constrainingType;
           
        } catch (XMLStreamException e) {
          ContributionReadException ce = new ContributionReadException(e);
          error("ContributionReadException", inputFactory, ce);
            throw ce;
        } catch (IOException e) {
          ContributionReadException ce = new ContributionReadException(e);
          error("ContributionReadException", inputFactory, ce);
            throw ce;
        } finally {
            try {
                if (urlStream != null) {
View Full Code Here

//            }
           
            return componentType;
           
        } catch (XMLStreamException e) {
          ContributionReadException ce = new ContributionReadException(e);
          error("ContributionReadException", inputFactory, ce);
            throw ce;
        } catch (IOException e) {
          ContributionReadException ce = new ContributionReadException(e);
          error("ContributionReadException", inputFactory, ce);
            throw ce;
        } finally {
            try {
                if (urlStream != null) {
View Full Code Here

                    reader.next();
                }
            }
        }
        catch (XMLStreamException e) {
            ContributionReadException ex = new ContributionReadException(e);
            error("XMLStreamException", reader, ex);
        }
       
        return resourceExport;
    }
View Full Code Here

            try {
                analyzeProblems();
            } catch (ServiceRuntimeException e) {
                throw e;
            } catch (Exception e) {
                throw new ContributionReadException(e);
            }
           
            // Resolve the contribution dependencies
            contributionDependencyBuilder.buildContributionDependencies(contribution, workspace);
           
            contributionProcessor.resolve(contribution, workspace.getModelResolver());
            try {
                analyzeProblems();
            } catch (ServiceRuntimeException e) {
                throw e;
            } catch (Exception e) {
                throw new ContributionReadException(e);
            }
            return contribution;

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

TOP

Related Classes of org.apache.tuscany.sca.contribution.service.ContributionReadException

Copyright © 2018 www.massapicom. 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.