mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3142 - upgrade to karaf 2.2.0
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1077868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d17ecebec4
commit
2f47288da2
|
@ -17,11 +17,20 @@
|
|||
*/
|
||||
package org.apache.activemq.karaf.commands;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.felix.gogo.commands.Action;
|
||||
import org.apache.felix.gogo.commands.Argument;
|
||||
import org.apache.felix.gogo.commands.basic.AbstractCommand;
|
||||
import org.apache.felix.gogo.commands.basic.ActionPreparator;
|
||||
import org.apache.felix.gogo.commands.basic.DefaultActionPreparator;
|
||||
import org.apache.felix.service.command.CommandSession;
|
||||
import org.apache.karaf.shell.console.BlueprintContainerAware;
|
||||
import org.apache.karaf.shell.console.BundleContextAware;
|
||||
import org.apache.karaf.shell.console.CompletableFunction;
|
||||
|
@ -30,15 +39,6 @@ import org.apache.karaf.shell.console.commands.GenericType;
|
|||
import org.osgi.framework.BundleContext;
|
||||
import org.osgi.service.blueprint.container.BlueprintContainer;
|
||||
import org.osgi.service.blueprint.container.Converter;
|
||||
import org.osgi.service.command.CommandSession;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Base command to process options and wrap native ActiveMQ console commands.
|
||||
|
@ -62,6 +62,7 @@ public class ActiveMQCommand extends AbstractCommand implements CompletableFunct
|
|||
this.actionId = actionId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Completer> getCompleters() {
|
||||
return completers;
|
||||
}
|
||||
|
@ -143,6 +144,7 @@ public class ActiveMQCommand extends AbstractCommand implements CompletableFunct
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Action createNewAction() {
|
||||
Action action = (Action) blueprintContainer.getComponentInstance(actionId);
|
||||
if (action instanceof BlueprintContainerAware) {
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
<service ref="listcommand" activation="lazy" >
|
||||
<interfaces>
|
||||
<value>org.osgi.service.command.Function</value>
|
||||
<value>org.apache.felix.service.command.Function</value>
|
||||
<value>org.apache.karaf.shell.console.CompletableFunction</value>
|
||||
</interfaces>
|
||||
<service-properties>
|
||||
|
@ -67,7 +67,7 @@
|
|||
|
||||
<service ref="querycommand" activation="lazy" >
|
||||
<interfaces>
|
||||
<value>org.osgi.service.command.Function</value>
|
||||
<value>org.apache.felix.service.command.Function</value>
|
||||
<value>org.apache.karaf.shell.console.CompletableFunction</value>
|
||||
</interfaces>
|
||||
<service-properties>
|
||||
|
@ -93,7 +93,7 @@
|
|||
|
||||
<service ref="browsecommand" activation="lazy" >
|
||||
<interfaces>
|
||||
<value>org.osgi.service.command.Function</value>
|
||||
<value>org.apache.felix.service.command.Function</value>
|
||||
<value>org.apache.karaf.shell.console.CompletableFunction</value>
|
||||
</interfaces>
|
||||
<service-properties>
|
||||
|
@ -119,7 +119,7 @@
|
|||
|
||||
<service ref="bstatcommand" activation="lazy" >
|
||||
<interfaces>
|
||||
<value>org.osgi.service.command.Function</value>
|
||||
<value>org.apache.felix.service.command.Function</value>
|
||||
<value>org.apache.karaf.shell.console.CompletableFunction</value>
|
||||
</interfaces>
|
||||
<service-properties>
|
||||
|
@ -145,7 +145,7 @@
|
|||
|
||||
<service ref="purgecommand" activation="lazy" >
|
||||
<interfaces>
|
||||
<value>org.osgi.service.command.Function</value>
|
||||
<value>org.apache.felix.service.command.Function</value>
|
||||
<value>org.apache.karaf.shell.console.CompletableFunction</value>
|
||||
</interfaces>
|
||||
<service-properties>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
-->
|
||||
|
||||
<features name="activemq-${activemq-version}">
|
||||
<repository>mvn:org.apache.karaf/apache-karaf/${karaf-version}/xml/features</repository>
|
||||
<repository>mvn:org.apache.karaf.assemblies.features/standard/${karaf.version}/xml/features</repository>
|
||||
|
||||
<feature name="activemq" version="${activemq-version}">
|
||||
<bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
|
||||
|
@ -42,7 +42,7 @@
|
|||
</feature>
|
||||
|
||||
<feature name="activemq-spring" version="${activemq-version}">
|
||||
<feature version="1.2.0">spring-dm</feature>
|
||||
<feature version="[1,2)">spring-dm</feature>
|
||||
<feature version="${activemq-version}">activemq</feature>
|
||||
<bundle>mvn:org.apache.activemq/activemq-spring/${activemq-version}</bundle>
|
||||
<bundle>mvn:org.apache.xbean/xbean-spring/${xbean-version}</bundle>
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -70,7 +70,7 @@
|
|||
<jmock-version>2.5.1</jmock-version>
|
||||
<junit-version>4.5</junit-version>
|
||||
<jxta-version>2.0</jxta-version>
|
||||
<karaf-version>2.1.0</karaf-version>
|
||||
<karaf-version>2.2.0</karaf-version>
|
||||
<log4j-version>1.2.14</log4j-version>
|
||||
<org-apache-derby-version>10.1.3.1</org-apache-derby-version>
|
||||
<p2psockets-version>1.1.2</p2psockets-version>
|
||||
|
|
Loading…
Reference in New Issue