Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6835911eb84bccd2055d691cac54587c79856437 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

	<!-- START UP THE SHELL -->

	<bean id="commandProcessor" class="org.eclipse.virgo.kernel.shell.internal.StandardCommandProcessor">
		<constructor-arg ref="commandInvoker" />
	</bean>

	<bean id="singleCommandExecutor" class="org.eclipse.virgo.kernel.shell.internal.SingleSessionCommandExecutor">
		<constructor-arg ref="commandProcessor"/>
	</bean>

	<bean id="ioManager" class="org.eclipse.virgo.kernel.shell.internal.LocalInputOutputManager">
		<constructor-arg ref="bundleContext"/>
	</bean>

	<bean id="completerRegistry" class="org.eclipse.virgo.kernel.shell.internal.completers.ServiceRegistryCommandCompleterRegistry" init-method="initialize">
		<constructor-arg ref="bundleContext"/>
	</bean>
	
	<bean id="modelAccessorHelper" class="org.eclipse.virgo.kernel.shell.model.helper.StandardRamAccessorHelper" />

	<!-- START UP THE INTIAL COMMAND PROVIDER -->

	<bean id="stateService" class="org.eclipse.virgo.kernel.shell.state.internal.StandardStateService">
		<constructor-arg ref="quasiFrameworkFactory" />
		<constructor-arg ref="userRegionBundleContext" />
		<constructor-arg ref="regionDigraph" />
	</bean>
	
	<bean id="installCommand" class="org.eclipse.virgo.kernel.shell.internal.commands.InstallCommand"/>

	<bean id="bundleCommands" class="org.eclipse.virgo.kernel.shell.internal.commands.BundleCommands">
		<constructor-arg ref="objectNameCreator"/>
		<constructor-arg ref="stateService" />
		<constructor-arg ref="moduleContextAccessor" />
	</bean>

	<bean id="serviceCommands" class="org.eclipse.virgo.kernel.shell.internal.commands.ServiceCommands">
		<constructor-arg ref="stateService" />
	</bean>

	<bean id="packageCommands" class="org.eclipse.virgo.kernel.shell.internal.commands.PackageCommands">
		<constructor-arg ref="stateService" />
	</bean>

	<bean id="configCommands" class="org.eclipse.virgo.kernel.shell.internal.commands.ConfigCommands">
		<constructor-arg ref="objectNameCreator"/>
		<constructor-arg ref="configAdmin" />
	</bean>

	<bean id="planCommands" class="org.eclipse.virgo.kernel.shell.internal.commands.PlanCommands">
		<constructor-arg ref="objectNameCreator"/>
	</bean>

	<bean id="parCommands" class="org.eclipse.virgo.kernel.shell.internal.commands.ParCommands">
		<constructor-arg ref="objectNameCreator"/>
	</bean>

	<bean id="shutdownCommand" class="org.eclipse.virgo.kernel.shell.internal.commands.ShutdownCommand">
		<constructor-arg ref="ioManager"/>
	</bean>
	
	<bean id="exitCommand" class="org.eclipse.virgo.kernel.shell.internal.commands.ExitCommand"/>
	
	<bean id="helpCommand" class="org.eclipse.virgo.kernel.shell.internal.commands.HelpCommand">
		<constructor-arg ref="commandRegistry"/>
		<constructor-arg ref="helpAccessor"/>
	</bean>
	
	<bean id="helpAccessor" class="org.eclipse.virgo.kernel.shell.internal.help.SimpleFileHelpAccessor"/>

	<bean id="helpCommandCompleter" class="org.eclipse.virgo.kernel.shell.internal.completers.HelpCommandCompleter">
		<constructor-arg ref="commandRegistry"/>
	</bean>

	<bean id="bundleCompleter" class="org.eclipse.virgo.kernel.shell.internal.completers.BundleCompleter">
		<constructor-arg ref="objectNameCreator"/>
	</bean>

	<bean id="packageCompleter" class="org.eclipse.virgo.kernel.shell.internal.completers.PackageCompleter">
		<constructor-arg ref="stateService"/>
	</bean>

	<bean id="configCompleter" class="org.eclipse.virgo.kernel.shell.internal.completers.ConfigCompleter">
		<constructor-arg ref="objectNameCreator"/>
	</bean>
	
	<bean id="parCompleter" class="org.eclipse.virgo.kernel.shell.internal.completers.ParCompleter">
		<constructor-arg ref="objectNameCreator"/>
	</bean>
	
	<bean id="planCompleter" class="org.eclipse.virgo.kernel.shell.internal.completers.PlanCompleter">
		<constructor-arg ref="objectNameCreator"/>
	</bean>
	
	<bean id="installCompleter" class="org.eclipse.virgo.kernel.shell.internal.completers.InstallCompleter"/>

	<!-- CREATE THE VARIOUS TYPE CONVERTERS -->

	<bean id="longConverter" class="org.eclipse.virgo.kernel.shell.internal.converters.LongConverter" />

	<bean id="stringConverter" class="org.eclipse.virgo.kernel.shell.internal.converters.StringConverter" />

	<bean id="commandResolver" class="org.eclipse.virgo.kernel.shell.internal.CompoundCommandResolver">
		<constructor-arg>
			<list>
				<bean class="org.eclipse.virgo.kernel.shell.internal.AnnotationBasedCommandResolver"/>
				<bean class="org.eclipse.virgo.kernel.shell.internal.ServicePropertyCommandResolver"/>
			</list>
		</constructor-arg>
	</bean>

	<bean id="commandRegistry" class="org.eclipse.virgo.kernel.shell.internal.CommandRegistry" init-method="initialize">
		<constructor-arg ref="commandResolver"/>
		<constructor-arg ref="bundleContext"/>
	</bean>

	<bean id="commandInvoker" class="org.eclipse.virgo.kernel.shell.internal.CommandRegistryCommandInvoker">
		<constructor-arg ref="commandRegistry"/>
		<constructor-arg ref="converterRegistry"/>
	</bean>

	<bean id="converterRegistry" class="org.eclipse.virgo.kernel.shell.internal.converters.ServiceRegistryConverterRegistry" init-method="initialize">
		<constructor-arg ref="bundleContext"/>
	</bean>

</beans>

Back to the top