Interface MavenBrokerManager

  • All Known Implementing Classes:
    MavenBrokerSingletonManager

    public interface MavenBrokerManager
    Manager of the broker used by the maven plugin.
    • Method Detail

      • start

        void start​(boolean fork,
                   String configUri)
            throws org.apache.maven.plugin.MojoExecutionException
        Start the broker using the fork setting and configuration at the given URI.
        Parameters:
        fork - true => run the broker asynchronously; false => run the broker synchronously (this method does not return until the broker shuts down)
        configUri - URI of the broker configuration; prefix with "xbean:file" to read XML configuration from a file.
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • stop

        void stop()
           throws org.apache.maven.plugin.MojoExecutionException
        Stop the broker.
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getBroker

        BrokerService getBroker()
        Return the broker service created.
      • setBroker

        void setBroker​(BrokerService broker)
        Set the broker service managed to the one given.
        Parameters:
        broker - activemq instance to manage.