Added tutorials of the hibernate-release 5.0.12.Final
[hibernate4-maven-plugin] / src / it / tutorials-5.0.12 / osgi / unmanaged-native / src / main / resources / OSGI-INF / blueprint / blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Hibernate, Relational Persistence for Idiomatic Java
4   ~
5   ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
6   ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
7   -->
8 <blueprint default-activation="eager"
9            xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10         >
11
12   <bean id="dpService" class="org.hibernate.osgitest.DataPointServiceImpl"/>
13   <service ref="dpService" interface="org.hibernate.osgitest.DataPointService"/>
14
15   <!-- This demonstrates how to register your custom implementations of Hibernate extension points. -->
16
17   <bean id="integrator" class="org.hibernate.osgitest.TestIntegrator"/>
18   <service ref="integrator" interface="org.hibernate.integrator.spi.Integrator"/>
19
20   <bean id="strategyRegistrationProvider" class="org.hibernate.osgitest.TestStrategyRegistrationProvider"/>
21   <service ref="strategyRegistrationProvider"
22            interface="org.hibernate.boot.registry.selector.StrategyRegistrationProvider"/>
23
24   <bean id="typeContributor" class="org.hibernate.osgitest.TestTypeContributor"/>
25   <service ref="typeContributor" interface="org.hibernate.boot.model.TypeContributor"/>
26
27   <!-- This bundle makes use of Karaf commands to demonstrate core persistence operations.  Feel free to remove it. -->
28   <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
29     <command>
30       <action class="org.hibernate.osgitest.command.AddCommand">
31         <property name="dpService" ref="dpService"/>
32       </action>
33     </command>
34     <command>
35       <action class="org.hibernate.osgitest.command.UpdateCommand">
36         <property name="dpService" ref="dpService"/>
37       </action>
38     </command>
39     <command>
40       <action class="org.hibernate.osgitest.command.GetCommand">
41         <property name="dpService" ref="dpService"/>
42       </action>
43     </command>
44     <command>
45       <action class="org.hibernate.osgitest.command.LoadCommand">
46         <property name="dpService" ref="dpService"/>
47       </action>
48     </command>
49     <command>
50       <action class="org.hibernate.osgitest.command.GetAllCommand">
51         <property name="dpService" ref="dpService"/>
52       </action>
53     </command>
54     <command>
55       <action class="org.hibernate.osgitest.command.GetRevisionsCommand">
56         <property name="dpService" ref="dpService"/>
57       </action>
58     </command>
59     <command>
60       <action class="org.hibernate.osgitest.command.DeleteAllCommand">
61         <property name="dpService" ref="dpService"/>
62       </action>
63     </command>
64   </command-bundle>
65 </blueprint>