1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ Hibernate, Relational Persistence for Idiomatic Java
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>.
8 <blueprint default-activation="eager"
9 xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11 xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0"
12 xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0">
14 <!-- This gets the container-managed EntityManager and injects it into the DataPointServiceImpl bean. -->
15 <bean id="dpService" class="org.hibernate.osgitest.DataPointServiceImpl">
16 <jpa:context unitname="managed-jpa" property="entityManager"/>
17 <tx:transaction method="*" value="Required"/>
19 <service ref="dpService" interface="org.hibernate.osgitest.DataPointService"/>
21 <!-- This demonstrates how to register your custom implementations of Hibernate extension points, such as
22 Integrator and TypeContributor. -->
23 <!-- <bean id="integrator" class="your.package.IntegratorImpl"/>
24 <service ref="integrator" interface="org.hibernate.integrator.spi.Integrator"/>
25 <bean id="typeContributor" class="your.package.TypeContributorImpl"/>
26 <service ref="typeContributor" interface="org.hibernate.metamodel.spi.TypeContributor"/> -->
28 <!-- This bundle makes use of Karaf commands to demonstrate core persistence operations. Feel free to remove it. -->
29 <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
31 <action class="org.hibernate.osgitest.command.AddCommand">
32 <property name="dpService" ref="dpService"/>
36 <action class="org.hibernate.osgitest.command.GetAllCommand">
37 <property name="dpService" ref="dpService"/>
41 <action class="org.hibernate.osgitest.command.DeleteAllCommand">
42 <property name="dpService" ref="dpService"/>