]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - modules/org.argeo.slc.agent/META-INF/spring/osgi.xml
Remove runtime packages
[gpl/argeo-slc.git] / modules / org.argeo.slc.agent / META-INF / spring / osgi.xml
index f0c8e5a4875de65dec195e11ba56858dfdd5a936..c1b33f300ea5dc66388727a1c9b1f808b6da7c42 100644 (file)
@@ -1,13 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
+       xmlns:util="http://www.springframework.org/schema/util"\r
        xsi:schemaLocation="http://www.springframework.org/schema/osgi  \r
        http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
        http://www.springframework.org/schema/beans   \r
        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
 \r
-       <!-- <beans:import resource="classpath:org/argeo/slc/osgi/manager.xml" /> -->\r
-\r
        <!-- REFERENCES -->\r
        <list id="executionContexts" interface="org.argeo.slc.execution.ExecutionContext"\r
                cardinality="0..N">\r
        <list id="slcExecutionListeners" interface="org.argeo.slc.process.SlcExecutionNotifier"\r
                cardinality="0..N" />\r
 \r
+       <list id="agents" interface="org.argeo.slc.execution.SlcAgent"\r
+               cardinality="0..N">\r
+               <listener ref="vmAgentFactory" bind-method="register"\r
+                       unbind-method="unregister" />\r
+       </list>\r
+\r
        <!-- SERVICES -->\r
        <service ref="modulesManager" interface="org.argeo.slc.execution.ExecutionModulesManager" />\r
 \r
+       <service ref="vmAgentFactory" interface="org.argeo.slc.execution.SlcAgentFactory">\r
+               <service-properties>\r
+                       <beans:entry key="argeo.slc.jcr.path" value="/slc:system/slc:agents/slc:vm" />\r
+               </service-properties>\r
+       </service>\r
 \r
 </beans:beans>
\ No newline at end of file