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

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


                       policyProcessor.writePolicies(bean), new XAttr(null, attrs));

            writeEnd(writer);

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


            }
   
            writeEndDocument(writer);
           
        } catch (XMLStreamException e) {
            throw new ContributionWriteException(e);
        }
    }
View Full Code Here

            XMLStreamWriter writer = outputFactory.createXMLStreamWriter(os);
            write(model, writer);
            writer.flush();
            writer.close();
        } catch (XMLStreamException e) {
          ContributionWriteException cw = new ContributionWriteException(e);
          error("ContributionWriteException", outputFactory, cw);
            throw cw;
        }
    }
View Full Code Here

            XMLStreamWriter writer = outputFactory.createXMLStreamWriter(os);
            write(model, writer);
            writer.flush();
            writer.close();
        } catch (XMLStreamException e) {
          ContributionWriteException cw = new ContributionWriteException(e);
          error("ContributionWriteException", outputFactory, cw);
            throw cw;
        }
    }
View Full Code Here

            }
           
            writer.writeEndElement();

        } catch (XMLStreamException e) {
            throw new ContributionWriteException(e);
        }
    }
View Full Code Here

                writer.writeAttribute(LOCATION, springImplementation.getSpringLocation());
            }
            writer.writeEndElement();

        } catch (XMLStreamException e) {
            throw new ContributionWriteException(e);
        }
    } // end write
View Full Code Here

                writer.writeAttribute(CALLBACK_INTERFACE, javaCallbackInterface.getName());
            }
            writer.writeEndElement();
           
        } catch (XMLStreamException e) {
            throw new ContributionWriteException(e);
        }
    }
View Full Code Here

           
           
            writer.writeEndElement();
           
        } catch (XMLStreamException e) {
            throw new ContributionWriteException(e);
        }
    }
View Full Code Here

                        sb.append(contrainedArtifact.toString());
                        sb.append(" ");
                    }
                    writer.writeAttribute(CONSTRAINS, sb.toString());
                } else {
                    throw new ContributionWriteException("Contrains attribute missing from " +
                                    "Policy Intent Definition" + policyIntent.getName());
                }
            }
           
            if ( policyIntent.getDescription() != null && policyIntent.getDescription().length() > 0) {
                writer.writeStartElement(PolicyConstants.SCA10_NS, DESCRIPTION);
                writer.writeCData(policyIntent.getDescription());
                writer.writeEndElement();
            }
           
            writer.writeEndElement();
           
        } catch (XMLStreamException e) {
            throw new ContributionWriteException(e);
        }
    }
View Full Code Here

            }

            writeEndDocument(writer);
           
        } catch (XMLStreamException e) {
            throw new ContributionWriteException(e);
        }
    }
View Full Code Here

TOP

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

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.