Upgraded source/target version of Java from 1.6 to 1.8
[hibernate4-maven-plugin] / src / it / tutorials / osgi / unmanaged-native / src / main / resources / OSGI-INF / blueprint / blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     Licensed to the Apache Software Foundation (ASF) under one or more
5     contributor license agreements.  See the NOTICE file distributed with
6     this work for additional information regarding copyright ownership.
7     The ASF licenses this file to You under the Apache License, Version 2.0
8     (the "License"); you may not use this file except in compliance with
9     the License.  You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13     Unless required by applicable law or agreed to in writing, software
14     distributed under the License is distributed on an "AS IS" BASIS,
15     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16     See the License for the specific language governing permissions and
17     limitations under the License.
18
19 -->
20 <blueprint  default-activation="eager" 
21             xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
22             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
23
24   <bean id="dpService" class="org.hibernate.osgitest.DataPointServiceImpl"/>
25   <service ref="dpService" interface="org.hibernate.osgitest.DataPointService" />
26   
27   <!-- This demonstrates how to register your custom implementations of Hibernate extension points. -->
28             
29   <bean id="integrator" class="org.hibernate.osgitest.TestIntegrator"/>
30   <service ref="integrator" interface="org.hibernate.integrator.spi.Integrator"/>
31
32   <bean id="strategyRegistrationProvider" class="org.hibernate.osgitest.TestStrategyRegistrationProvider"/>
33   <service ref="strategyRegistrationProvider" interface="org.hibernate.boot.registry.selector.StrategyRegistrationProvider"/>
34             
35   <bean id="typeContributor" class="org.hibernate.osgitest.TestTypeContributor"/>
36   <service ref="typeContributor" interface="org.hibernate.metamodel.spi.TypeContributor"/>
37   
38   <!-- This bundle makes use of Karaf commands to demonstrate core persistence operations.  Feel free to remove it. -->
39   <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
40         <command name="dp:add">
41             <action class="org.hibernate.osgitest.command.AddCommand">
42                 <property name="dpService" ref="dpService"/>
43             </action>
44         </command>
45         <command name="dp:update">
46             <action class="org.hibernate.osgitest.command.UpdateCommand">
47                 <property name="dpService" ref="dpService"/>
48             </action>
49         </command>
50         <command name="dp:get">
51             <action class="org.hibernate.osgitest.command.GetCommand">
52                 <property name="dpService" ref="dpService"/>
53             </action>
54         </command>
55         <command name="dp:load">
56             <action class="org.hibernate.osgitest.command.LoadCommand">
57                 <property name="dpService" ref="dpService"/>
58             </action>
59         </command>
60         <command name="dp:getAll">
61             <action class="org.hibernate.osgitest.command.GetAllCommand">
62                 <property name="dpService" ref="dpService"/>
63             </action>
64         </command>
65         <command name="dp:getRevisions">
66             <action class="org.hibernate.osgitest.command.GetRevisionsCommand">
67                 <property name="dpService" ref="dpService"/>
68             </action>
69         </command>
70         <command name="dp:deleteAll">
71             <action class="org.hibernate.osgitest.command.DeleteAllCommand">
72                 <property name="dpService" ref="dpService"/>
73             </action>
74         </command>
75     </command-bundle>
76 </blueprint>