+ refactor to separate runtime and module project under eclipse plugin.
authorBruno Sinou <bsinou@argeo.org>
Mon, 8 Nov 2010 15:48:13 +0000 (15:48 +0000)
committerBruno Sinou <bsinou@argeo.org>
Mon, 8 Nov 2010 15:48:13 +0000 (15:48 +0000)
+ add some pom to prepare the deployment
+ clean client rcp & ui project (change src & target folder)

git-svn-id: https://svn.argeo.org/slc/trunk@3864 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/core.xml [new file with mode: 0644]
eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/osgi.xml [new file with mode: 0644]
eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/transaction.xml [new file with mode: 0644]

diff --git a/eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/core.xml b/eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/core.xml
new file mode 100644 (file)
index 0000000..027c50d
--- /dev/null
@@ -0,0 +1,30 @@
+<?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:p="http://www.springframework.org/schema/p"
+       xmlns:aop="http://www.springframework.org/schema/aop"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+              http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
+              ">
+
+       <!-- Providers -->
+       <bean id="processListTableLabelProvider"
+               class="org.argeo.slc.client.contentprovider.ProcessListTableLabelProvider" />
+       <bean id="processListStructuredContentProvider"
+               class="org.argeo.slc.client.contentprovider.ProcessListStructuredContentProvider" />
+       <bean id="processDetailContentProvider"
+               class="org.argeo.slc.client.contentprovider.ProcessDetailContentProvider"
+               scope="prototype" />
+       <bean id="resultDetailContentProvider"
+               class="org.argeo.slc.client.contentprovider.ResultDetailContentProvider"
+               scope="prototype" />
+       <bean id="resultDetailLabelProvider"
+               class="org.argeo.slc.client.contentprovider.ResultDetailLabelProvider"
+               scope="prototype" />
+
+       <!-- Aspects -->
+       <aop:aspectj-autoproxy />
+       <bean id="contentProviderAspect" class="org.argeo.slc.client.aspects.ContentProviderAspect">
+               <property name="sessionFactory" ref="sessionFactory" />
+               <!-- <property name="transactionManager" ref="transactionManager" /> -->
+       </bean>
+</beans>
diff --git a/eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/osgi.xml b/eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/osgi.xml
new file mode 100644 (file)
index 0000000..55bdfa7
--- /dev/null
@@ -0,0 +1,42 @@
+<?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
+       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:description>\r
+               This bundle is the bridge between the slc RCP\r
+               client\r
+               and hibernate implementation of the model.\r
+\r
+               Corresponding java classes\r
+               are implemented\r
+               in the org.client.slc.client.core bundle.\r
+       </beans:description>\r
+\r
+       <!-- Services exposed by the bundle -->\r
+       <service ref="processListTableLabelProvider" interface="org.eclipse.jface.viewers.ITableLabelProvider" />\r
+       <service ref="processListStructuredContentProvider"\r
+               interface="org.eclipse.jface.viewers.IStructuredContentProvider" />\r
+       <service ref="processDetailContentProvider" interface="org.eclipse.jface.viewers.ITreeContentProvider" />\r
+       <service ref="resultDetailLabelProvider" interface="org.eclipse.jface.viewers.ITableLabelProvider" />\r
+       <service ref="resultDetailContentProvider" interface="org.eclipse.jface.viewers.ITreeContentProvider" />\r
+\r
+       <!-- References Needed -->\r
+       <reference id="slcExecutionDao" interface="org.argeo.slc.dao.process.SlcExecutionDao"\r
+               context-class-loader="service-provider" />\r
+\r
+       <reference id="transactionManager"\r
+               interface="org.springframework.transaction.PlatformTransactionManager"\r
+               context-class-loader="service-provider" />\r
+\r
+       <reference id="sessionFactory" interface="org.hibernate.SessionFactory" />\r
+\r
+       <!-- Castor marshalling & un marshalling -->\r
+       <!-- <reference id="marshaller" interface="org.springframework.oxm.Marshaller" \r
+               /> <reference id="unmarshaller" interface="org.springframework.oxm.Unmarshaller" \r
+               /> -->\r
+\r
+</beans:beans>
\ No newline at end of file
diff --git a/eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/transaction.xml b/eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/spring/transaction.xml
new file mode 100644 (file)
index 0000000..b60b4f1
--- /dev/null
@@ -0,0 +1,17 @@
+<?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:aop="http://www.springframework.org/schema/aop"
+       xmlns:tx="http://www.springframework.org/schema/tx"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
+       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
+
+       <!-- AOP Configuration -->
+       <!-- <aop:config> <aop:pointcut id="tableContentMethods" expression="execution(* 
+               org.argeo.slc.client.core.TableContent.*(..))" /> <aop:advisor advice-ref="daoAdvice" 
+               pointcut-ref="tableContentMethods" /> </aop:config> <tx:advice id="daoAdvice" 
+               transaction-manager="transactionManager"> <tx:attributes> <tx:method name="get*" 
+               propagation="REQUIRED" read-only="true" /> <tx:method name="*" propagation="REQUIRED" 
+               /> </tx:attributes> </tx:advice> -->
+</beans>
\ No newline at end of file