Examples of Problem


Examples of org.apache.tuscany.sca.monitor.Problem

     * @param message
     * @param model
     */
     private void error(Monitor monitor, String message, Object model, Object... messageParameters) {
       if (monitor != null) {
          Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-namespace-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
          monitor.problem(problem);
       }
     }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

    public void testCalculator() throws Exception {
        ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry();
        UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class);
        MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class);
        Monitor monitor = monitorFactory.createMonitor();
        Problem problem = ((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem();
       
        assertNotNull(problem);
        assertEquals("ReferenceNotFound", problem.getMessageId());
    }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

     * @param message
     * @param model
     */
    private void warning(String message, Object model, String... messageParameters) {
        if (monitor != null) {
            Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
            monitor.problem(problem);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

     * @param message
     * @param model
     */
    private void error(String message, Object model, String... messageParameters) {
        if (monitor != null) {
            Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
            monitor.problem(problem);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

     * @param model
     * @param messageParameters
     */
    protected void warning(String message, Object model, String... messageParameters) {
        if (monitor != null){
            Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-xml-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
            monitor.problem(problem);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

     * @param message
     * @param model
     */
    protected void error(String message, Object model, Object... messageParameters) {
      if (monitor != null) {
          Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-xml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
          monitor.problem(problem);
      }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

     * @param message
     * @param model
     */
    protected void error(String message, Object model, Exception ex) {
      if (monitor != null) {
          Problem problem = new ProblemImpl(this.getClass().getName(), "assembly-xml-validation-messages", Severity.ERROR, model, message, ex);
          monitor.problem(problem);
      }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

     * @param message
     * @param model
     */
     private void warning(String message, Object model, Object... messageParameters) {
       if (monitor != null) {
          Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
          monitor.problem(problem);
       }
     }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

      * @param message
      * @param model
      */
     private void error(String message, Object model, Object... messageParameters) {
       if (monitor != null) {
           Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
           monitor.problem(problem);
       }
     }
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Problem

     * @param message
     * @param model
     */
     private void error(String message, Object model, Exception ex) {
       if (monitor != null) {
         Problem problem = new ProblemImpl(this.getClass().getName(), "contribution-validation-messages", Severity.ERROR, model, message, ex);
           monitor.problem(problem);
       }       
     }
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.