Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.virgo.kernel.shell/src/main/resources/META-INF/spring/osgi-context.xml')
-rw-r--r--org.eclipse.virgo.kernel.shell/src/main/resources/META-INF/spring/osgi-context.xml137
1 files changed, 137 insertions, 0 deletions
diff --git a/org.eclipse.virgo.kernel.shell/src/main/resources/META-INF/spring/osgi-context.xml b/org.eclipse.virgo.kernel.shell/src/main/resources/META-INF/spring/osgi-context.xml
new file mode 100644
index 00000000..7aa2d254
--- /dev/null
+++ b/org.eclipse.virgo.kernel.shell/src/main/resources/META-INF/spring/osgi-context.xml
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
+
+<!-- SERVICES FOR THE CORE SHELL SYSTEM -->
+
+ <osgi:reference id="quasiFrameworkFactory" interface="org.eclipse.virgo.kernel.osgi.quasi.QuasiFrameworkFactory" />
+
+ <osgi:reference id="moduleContextAccessor" interface="org.eclipse.virgo.kernel.module.ModuleContextAccessor" />
+
+ <osgi:reference id="eventLogger" interface="org.eclipse.virgo.medic.eventlog.EventLogger" />
+
+ <osgi:reference id="configAdmin" interface="org.osgi.service.cm.ConfigurationAdmin" />
+
+ <osgi:service ref="commandProcessor" interface="org.eclipse.virgo.kernel.shell.internal.CommandProcessor" />
+
+ <osgi:service ref="stateService" interface="org.eclipse.virgo.kernel.shell.state.StateService" />
+
+ <osgi:reference id="userRegionBundleContext" interface="org.osgi.framework.BundleContext" filter="(org.eclipse.virgo.kernel.regionContext=true)"/>
+
+ <osgi:reference id="deployer" interface="org.eclipse.virgo.kernel.deployer.core.ApplicationDeployer"/>
+
+ <osgi:service ref="modelAccessorHelper" interface="org.eclipse.virgo.kernel.shell.model.helper.RamAccessorHelper" />
+
+<!-- SERVICES FOR THE TYPE CONVERTERS -->
+
+ <osgi:service ref="longConverter" interface="org.eclipse.virgo.kernel.shell.Converter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.Converter.CONVERTER_CLASSES"/></key>
+ <value>#{longConverter.getTypes()}</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+ <osgi:service ref="stringConverter" interface="org.eclipse.virgo.kernel.shell.Converter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.Converter.CONVERTER_CLASSES"/></key>
+ <value>#{stringConverter.getTypes()}</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+<!-- SERVICES FOR THE COMMAND PROVIDERS -->
+
+ <osgi:service ref="helpCommand" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="installCommand" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="shutdownCommand" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="exitCommand" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="serviceCommands" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="bundleCommands" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="packageCommands" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="configCommands" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="planCommands" auto-export="class-hierarchy"/>
+
+ <osgi:service ref="parCommands" auto-export="class-hierarchy"/>
+
+ <osgi:reference id="objectNameCreator" interface="org.eclipse.virgo.kernel.model.management.RuntimeArtifactModelObjectNameCreator"/>
+
+ <osgi:service ref="helpCommandCompleter" interface="org.eclipse.virgo.kernel.shell.CommandCompleter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.CommandCompleter.SERVICE_PROPERTY_COMPLETER_COMMAND_NAMES"/></key>
+ <value>help</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+ <osgi:service ref="bundleCompleter" interface="org.eclipse.virgo.kernel.shell.CommandCompleter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.CommandCompleter.SERVICE_PROPERTY_COMPLETER_COMMAND_NAMES"/></key>
+ <value>bundle</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+ <osgi:service ref="packageCompleter" interface="org.eclipse.virgo.kernel.shell.CommandCompleter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.CommandCompleter.SERVICE_PROPERTY_COMPLETER_COMMAND_NAMES"/></key>
+ <value>package</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+ <osgi:service ref="configCompleter" interface="org.eclipse.virgo.kernel.shell.CommandCompleter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.CommandCompleter.SERVICE_PROPERTY_COMPLETER_COMMAND_NAMES"/></key>
+ <value>config</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+ <osgi:service ref="parCompleter" interface="org.eclipse.virgo.kernel.shell.CommandCompleter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.CommandCompleter.SERVICE_PROPERTY_COMPLETER_COMMAND_NAMES"/></key>
+ <value>par</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+ <osgi:service ref="planCompleter" interface="org.eclipse.virgo.kernel.shell.CommandCompleter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.CommandCompleter.SERVICE_PROPERTY_COMPLETER_COMMAND_NAMES"/></key>
+ <value>plan</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+ <osgi:service ref="installCompleter" interface="org.eclipse.virgo.kernel.shell.CommandCompleter">
+ <osgi:service-properties>
+ <entry>
+ <key><util:constant static-field="org.eclipse.virgo.kernel.shell.CommandCompleter.SERVICE_PROPERTY_COMPLETER_COMMAND_NAMES"/></key>
+ <value>install</value>
+ </entry>
+ </osgi:service-properties>
+ </osgi:service>
+
+</beans>

Back to the top