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