Class EchoMacro

  • All Implemented Interfaces:
    Macro

    @Singleton
    @Named("echo")
    public class EchoMacro
    extends AbstractMacro
    A simple macro that prints out the key and value of some supplied parameters.
    • Field Summary

      • Fields inherited from interface org.apache.maven.doxia.macro.Macro

        EOL
    • Constructor Summary

      Constructors 
      Constructor Description
      EchoMacro()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.apache.maven.doxia.sink.Sink sink, MacroRequest request)
      Execute the current macro using the given MacroRequest, and emit events into the given sink.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EchoMacro

        public EchoMacro()
    • Method Detail

      • execute

        public void execute​(org.apache.maven.doxia.sink.Sink sink,
                            MacroRequest request)
        Execute the current macro using the given MacroRequest, and emit events into the given sink.
        Parameters:
        sink - The sink to receive the events.
        request - The corresponding MacroRequest.