Examples of printMessage()


Examples of javax.annotation.processing.Messager.printMessage()

                    cycleInfo.append(cycle).append(" -> ");
                }
                cycleInfo.append(cycles.get(0));
                messager.printMessage(ERROR,
                        "Cyclic dependencies detected for action [" + payload + "]: " + cycleInfo);
                messager.printMessage(ERROR, "Please review [" + graphVizFile + "] for more details.");
            }
            if (!cyclesFound) {
                messager.printMessage(NOTE, "No cyclic dependencies found for action [" + payload + "]");
            }
        }
View Full Code Here

Examples of javax.annotation.processing.Messager.printMessage()

                messager.printMessage(ERROR,
                        "Cyclic dependencies detected for action [" + payload + "]: " + cycleInfo);
                messager.printMessage(ERROR, "Please review [" + graphVizFile + "] for more details.");
            }
            if (!cyclesFound) {
                messager.printMessage(NOTE, "No cyclic dependencies found for action [" + payload + "]");
            }
        }
    }
}
View Full Code Here

Examples of javax.annotation.processing.Messager.printMessage()

            {
                continue;
            }

            System.out.println( "Testing message for: " + kind );
            messager.printMessage( kind, kind + " Test message." );
        }

        return true;
    }
View Full Code Here

Examples of javax.annotation.processing.Messager.printMessage()

    for (Element element : elements) {
      Path annotation = element.getAnnotation(Path.class);

      // make sure we only work on classes or interfaces @Path annotated
      if (annotation != null && (element.getKind() == ElementKind.CLASS || element.getKind() == ElementKind.INTERFACE)) {
        messager.printMessage(Kind.NOTE, "Generating documentation class for : " + element);
        // extract some names
        Name name = element.getSimpleName();
        PackageElement elementPackage = elementUtils.getPackageOf(element);
        // the javadoc
        String doc = elementUtils.getDocComment(element);
View Full Code Here

Examples of javax.annotation.processing.Messager.printMessage()

        PackageElement elementPackage = elementUtils.getPackageOf(element);
        // the javadoc
        String doc = elementUtils.getDocComment(element);
        // build a new class name
        String className = elementPackage.getQualifiedName() + "." + name + "_Doc";
        messager.printMessage(Kind.NOTE, "Class: " + className);
        try {
          // now write the new class which will be compiled in the
          // same run
          JavaFileObject sourceFile = processingEnv.getFiler().createSourceFile(className, element);
          Writer writer = sourceFile.openWriter();
View Full Code Here

Examples of javax.annotation.processing.Messager.printMessage()

                    }
                }
                bw.close();
            }
        } catch (IOException ex) {
            messager.printMessage(Kind.ERROR, ex.getLocalizedMessage());
            if (bw != null) {
                try {
                    bw.close();
                } catch (Exception e) {
                   
View Full Code Here

Examples of my.code.a003.process.apps.PrintOnRemoteRequest.MessagePrinterMBean.printMessage()

      ObjectName mbeanName = new ObjectName("my.code.a003.process:type=PrintOnRemoteRequest.MessagePrinter");
      MessagePrinterMBean printerProxy = JMX.newMBeanProxy(mbsc, mbeanName,
        MessagePrinterMBean.class, true);

      // call method on child process via MBean
      printerProxy.printMessage("Hello world!");

      // close connection to child application
      connector.close();
    } finally {
      if (childProcess != null) {
View Full Code Here

Examples of my.code.a003.process.apps.PrintOnRemoteRequest.MessagePrinterMBean.printMessage()

      ObjectName mbeanName = new ObjectName(TESTED_MBEAN_OBJECT_NAME);
      MessagePrinterMBean printerProxy = JMX.newMBeanProxy(mbsc, mbeanName,
        MessagePrinterMBean.class, true);

      // call method on child process via MBean
      printerProxy.printMessage("Hello world!");

      // close connection to child application
      connector.close();
    } finally {
      if (childProcess != null) {
View Full Code Here

Examples of org.apache.harmony.tests.java.lang.instrument.HelloWorldClass.printMessage()

import org.apache.harmony.tests.java.lang.instrument.HelloWorldClass;

public class InstrumentTest {
    public static void premain(String agentArgs, Instrumentation inst) {
        HelloWorldClass hwc = new HelloWorldClass();
        hwc.printMessage();
    }
}
View Full Code Here

Examples of org.cyclopsgroup.jmxterm.io.CommandOutput.printMessage()

                {
                    commandCenter.setVerboseLevel( verboseLevel );
                }
                if ( verboseLevel != VerboseLevel.SILENT )
                {
                    output.printMessage( "Welcome to JMX terminal. Type \"help\" for available commands." );
                }
                String line;
                int exitCode = 0;
                int lineNumber = 0;
                while ( ( line = input.readLine() ) != null )
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.