Package org.apache.activemq.maven
Class Broker
- java.lang.Object
-
- org.apache.activemq.maven.Broker
-
public class Broker extends Object
Singleton facade between Maven and one ActiveMQ broker.
-
-
Constructor Summary
Constructors Constructor Description Broker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BrokerServicegetBroker()Return the broker service created.static voidsetBroker(BrokerService broker)Override the default creation of the broker service.static voidstart(boolean fork, String configUri)static voidstop()protected static voidwaitForShutdown()Wait for a shutdown invocation elsewhere
-
-
-
Method Detail
-
start
public static void start(boolean fork, String configUri) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
stop
public static void stop() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
waitForShutdown
protected static void waitForShutdown() throws ExceptionWait for a shutdown invocation elsewhere- Throws:
Exception
-
getBroker
public static BrokerService getBroker()
Return the broker service created.
-
setBroker
public static void setBroker(BrokerService broker)
Override the default creation of the broker service. Primarily added for testing purposes.- Parameters:
broker-
-
-