All Downloads are FREE. Search and download functionalities are using the official Maven repository.

OSGI-INF.blueprint.example-connector-context.xml Maven / Gradle / Ivy

Go to download

Example Connector which implements Example Domain. It logs messages with a specific log level to the OSGI logger.

There is a newer version: 3.0.0.M2
Show 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">

  <reference id="domainEventInterface" interface="org.openengsb.domain.example.ExampleDomainEvents" />

  <service>
    <interfaces>
      <value>org.openengsb.core.api.ConnectorInstanceFactory</value>
    </interfaces>
    <service-properties>
      <entry key="domain">
        <value>example</value>
      </entry>
      <entry key="connector">
        <value>example</value>
      </entry>
    </service-properties>
    <bean class="org.openengsb.connector.example.LogServiceInstanceFactory">
      <property name="domainEventInterface" ref="domainEventInterface" />
    </bean>
  </service>

  <service>
    <interfaces>
      <value>org.openengsb.core.api.ConnectorProvider</value>
    </interfaces>
    <service-properties>
      <entry key="domain">
        <value>example</value>
      </entry>
      <entry key="connector">
        <value>example</value>
      </entry>
    </service-properties>
    <bean class="org.openengsb.connector.example.internal.ExampleConnectorProvider">
      <property name="id" value="example" />
      <property name="bundleContext" ref="blueprintBundleContext" />
    </bean>
  </service>

</blueprint>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy