mirror of https://github.com/apache/activemq.git
Use the Camel apt compiler for the activemq-camel plugin to generte component details.
This commit is contained in:
parent
2842cbd5b6
commit
dfd168b0b6
|
@ -55,6 +55,13 @@
|
|||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-jms</artifactId>
|
||||
</dependency>
|
||||
<!-- use the Camel apt compiler plugin -->
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>apt</artifactId>
|
||||
<version>${camel-version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>activemq-spring</artifactId>
|
||||
|
@ -208,6 +215,21 @@
|
|||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- use Camel plugins to generate component details -->
|
||||
<plugin>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-package-maven-plugin</artifactId>
|
||||
<version>${camel-version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>generate-components-list</goal>
|
||||
</goals>
|
||||
<phase>generate-resources</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ import java.net.URISyntaxException;
|
|||
import java.util.*;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.EnhancedConnection;
|
||||
import org.apache.activemq.Service;
|
||||
import org.apache.activemq.advisory.DestinationSource;
|
||||
|
@ -41,8 +40,6 @@ import javax.jms.Connection;
|
|||
|
||||
/**
|
||||
* The <a href="http://activemq.apache.org/camel/activemq.html">ActiveMQ Component</a>
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class ActiveMQComponent extends JmsComponent implements EndpointCompleter {
|
||||
private final CopyOnWriteArrayList<SingleConnectionFactory> singleConnectionFactoryList =
|
||||
|
@ -91,10 +88,10 @@ public class ActiveMQComponent extends JmsComponent implements EndpointCompleter
|
|||
}
|
||||
|
||||
public ActiveMQComponent(ActiveMQConfiguration configuration) {
|
||||
super(configuration);
|
||||
super();
|
||||
setConfiguration(configuration);
|
||||
}
|
||||
|
||||
|
||||
public void setBrokerURL(String brokerURL) {
|
||||
if (getConfiguration() instanceof ActiveMQConfiguration) {
|
||||
((ActiveMQConfiguration)getConfiguration()).setBrokerURL(brokerURL);
|
||||
|
|
Loading…
Reference in New Issue