[AMQ-4931] Use auto-export="interfaces" in the Karaf commands service definition

This commit is contained in:
Jean-Baptiste Onofré 2013-12-11 14:03:02 +01:00
parent 2bbfbcfb29
commit 6258ce1761
1 changed files with 6 additions and 30 deletions

View File

@ -27,11 +27,7 @@
<property name="actionId" value="listaction"/> <property name="actionId" value="listaction"/>
</bean> </bean>
<service ref="listcommand" activation="lazy"> <service ref="listcommand" auto-export="interfaces" activation="lazy">
<interfaces>
<value>org.apache.felix.service.command.Function</value>
<value>org.apache.karaf.shell.console.CompletableFunction</value>
</interfaces>
<service-properties> <service-properties>
<entry key="osgi.command.scope" value="activemq"/> <entry key="osgi.command.scope" value="activemq"/>
<entry key="osgi.command.function" value="list"/> <entry key="osgi.command.function" value="list"/>
@ -53,11 +49,7 @@
<property name="actionId" value="queryaction"/> <property name="actionId" value="queryaction"/>
</bean> </bean>
<service ref="querycommand" activation="lazy"> <service ref="querycommand" auto-export="interfaces" activation="lazy">
<interfaces>
<value>org.apache.felix.service.command.Function</value>
<value>org.apache.karaf.shell.console.CompletableFunction</value>
</interfaces>
<service-properties> <service-properties>
<entry key="osgi.command.scope" value="activemq"/> <entry key="osgi.command.scope" value="activemq"/>
<entry key="osgi.command.function" value="query"/> <entry key="osgi.command.function" value="query"/>
@ -79,11 +71,7 @@
<property name="actionId" value="browseaction"/> <property name="actionId" value="browseaction"/>
</bean> </bean>
<service ref="browsecommand" activation="lazy"> <service ref="browsecommand" auto-export="interfaces" activation="lazy">
<interfaces>
<value>org.apache.felix.service.command.Function</value>
<value>org.apache.karaf.shell.console.CompletableFunction</value>
</interfaces>
<service-properties> <service-properties>
<entry key="osgi.command.scope" value="activemq"/> <entry key="osgi.command.scope" value="activemq"/>
<entry key="osgi.command.function" value="browse"/> <entry key="osgi.command.function" value="browse"/>
@ -105,11 +93,7 @@
<property name="actionId" value="bstataction"/> <property name="actionId" value="bstataction"/>
</bean> </bean>
<service ref="bstatcommand" activation="lazy"> <service ref="bstatcommand" auto-export="interfaces" activation="lazy">
<interfaces>
<value>org.apache.felix.service.command.Function</value>
<value>org.apache.karaf.shell.console.CompletableFunction</value>
</interfaces>
<service-properties> <service-properties>
<entry key="osgi.command.scope" value="activemq"/> <entry key="osgi.command.scope" value="activemq"/>
<entry key="osgi.command.function" value="bstat"/> <entry key="osgi.command.function" value="bstat"/>
@ -131,11 +115,7 @@
<property name="actionId" value="purgeaction"/> <property name="actionId" value="purgeaction"/>
</bean> </bean>
<service ref="purgecommand" activation="lazy"> <service ref="purgecommand" auto-export="interfaces" activation="lazy">
<interfaces>
<value>org.apache.felix.service.command.Function</value>
<value>org.apache.karaf.shell.console.CompletableFunction</value>
</interfaces>
<service-properties> <service-properties>
<entry key="osgi.command.scope" value="activemq"/> <entry key="osgi.command.scope" value="activemq"/>
<entry key="osgi.command.function" value="purge"/> <entry key="osgi.command.function" value="purge"/>
@ -157,11 +137,7 @@
<property name="actionId" value="dstataction"/> <property name="actionId" value="dstataction"/>
</bean> </bean>
<service ref="dstatcommand" activation="lazy"> <service ref="dstatcommand" auto-export="interfaces" activation="lazy">
<interfaces>
<value>org.apache.felix.service.command.Function</value>
<value>org.apache.karaf.shell.console.CompletableFunction</value>
</interfaces>
<service-properties> <service-properties>
<entry key="osgi.command.scope" value="activemq"/> <entry key="osgi.command.scope" value="activemq"/>
<entry key="osgi.command.function" value="dstat"/> <entry key="osgi.command.function" value="dstat"/>