]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.agent/META-INF/spring/osgi.xml
Migrate SLC modules
[gpl/argeo-slc.git] / org.argeo.slc.agent / META-INF / spring / osgi.xml
diff --git a/org.argeo.slc.agent/META-INF/spring/osgi.xml b/org.argeo.slc.agent/META-INF/spring/osgi.xml
new file mode 100644 (file)
index 0000000..f223711
--- /dev/null
@@ -0,0 +1,52 @@
+<?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
+       <!-- REFERENCES -->\r
+       <!-- No <set> so that the equals methods are not called -->\r
+       <list id="executionContexts" interface="org.argeo.slc.execution.ExecutionContext"\r
+               cardinality="0..N">\r
+               <listener ref="modulesManager" bind-method="register"\r
+                       unbind-method="unregister" />\r
+       </list>\r
+\r
+       <list id="executionFlows" interface="org.argeo.slc.execution.ExecutionFlow"\r
+               cardinality="0..N">\r
+               <listener ref="modulesManager" bind-method="register"\r
+                       unbind-method="unregister" />\r
+       </list>\r
+\r
+       <list id="executionModulesListeners" interface="org.argeo.slc.execution.ExecutionModulesListener"\r
+               cardinality="0..N">\r
+               <listener ref="modulesManager" bind-method="register"\r
+                       unbind-method="unregister" />\r
+       </list>\r
+\r
+       <list id="executionFlowDescriptorConverters"\r
+               interface="org.argeo.slc.execution.ExecutionFlowDescriptorConverter"\r
+               cardinality="0..N">\r
+               <listener ref="modulesManager" />\r
+       </list>\r
+\r
+       <!-- SERVICES -->\r
+       <service ref="modulesManager" interface="org.argeo.slc.execution.ExecutionModulesManager" />\r
+\r
+       <!-- LABEL -->\r
+       <beans:bean class="org.argeo.security.core.OsgiModuleLabel">\r
+               <beans:property name="bundleContext" ref="bundleContext" />\r
+       </beans:bean>\r
+\r
+       <!-- ROLES -->\r
+       <reference id="userAdminService" interface="org.argeo.security.UserAdminService" />\r
+\r
+       <beans:bean class="org.argeo.security.core.SimpleRoleRegistration"\r
+               init-method="run">\r
+               <beans:property name="role" value="ROLE_SLC" />\r
+               <beans:property name="userAdminService" ref="userAdminService" />\r
+       </beans:bean>\r
+</beans:beans>
\ No newline at end of file