OSGI-INF.blueprint.edb-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.openengsb.framework.edb.jpa Show documentation
Show all versions of org.openengsb.framework.edb.jpa Show documentation
OpenEngSB Engineering Database Service is used to give an implementation for the connection to the EDB.
The newest version!
<?xml version="1.0" encoding="utf-8" ?> <!-- Licensed to the Austrian Association for Software Tool Integration (AASTI) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The AASTI licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd" xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0" xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.1.0" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"> <!-- Property place holder --> <cm:property-placeholder persistent-id="org.openengsb.edb"> <cm:default-properties> <cm:property name="revisionCheckEnabled" value="true" /> </cm:default-properties> </cm:property-placeholder> <bean id="jpaDao" class="org.openengsb.core.edb.jpa.internal.dao.DefaultJPADao"> <jpa:context unitname="edb" /> </bean> <bean id="edbServiceProvider" class="org.openengsb.core.edb.jpa.internal.EDBService"> <tx:transaction method="*" value="Required" /> <jpa:context property="entityManager" unitname="edb" /> <argument ref="jpaDao" /> <argument ref="authenticationContext" /> <argument ref="beginCommitHooks" /> <argument ref="preCommitHooks" /> <argument ref="postCommitHooks" /> <argument ref="errorHooks" /> <argument value="${revisionCheckEnabled}" /> </bean> <bean id="preCommitHook" class="org.openengsb.core.edb.jpa.internal.CheckPreCommitHook"> <argument ref="jpaDao" /> </bean> <service interface="org.openengsb.core.edb.api.hooks.EDBPreCommitHook"> <ref component-id="preCommitHook" /> </service> <service interface="org.openengsb.core.edb.api.EngineeringDatabaseService"> <ref component-id="edbServiceProvider" /> </service> <reference id="authenticationContext" interface="org.openengsb.core.api.security.AuthenticationContext"/> <reference-list id="errorHooks" interface="org.openengsb.core.edb.api.hooks.EDBErrorHook" availability="optional" /> <reference-list id="postCommitHooks" interface="org.openengsb.core.edb.api.hooks.EDBPostCommitHook" availability="optional"/> <reference-list id="preCommitHooks" interface="org.openengsb.core.edb.api.hooks.EDBPreCommitHook" availability="optional"/> <reference-list id="beginCommitHooks" interface="org.openengsb.core.edb.api.hooks.EDBBeginCommitHook" availability="optional"/> </blueprint>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy