<groupId>org.opendaylight.controller</groupId>
<artifactId>messagebus-impl</artifactId>
</dependency>
- <dependency>
- <!-- finalname="${config.configfile.directory}/05-message-bus.xml" -->
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>messagebus-config</artifactId>
- <version>${project.version}</version>
- <type>xml</type>
- <classifier>config</classifier>
- </dependency>
</dependencies>
</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright © 2016, 2017 Red Hat, Inc. and others.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
- -->
-<features name="odl-mdsal-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.2.0">
- <feature name="odl-message-bus-collector" version="${project.version}">
- <configfile finalname="${config.configfile.directory}/05-message-bus.xml">
- mvn:org.opendaylight.controller/messagebus-config/${project.version}/xml/config
- </configfile>
- </feature>
-</features>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.opendaylight.odlparent</groupId>
- <artifactId>odlparent-lite</artifactId>
- <version>3.1.0</version>
- <relativePath/>
- </parent>
-
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>messagebus-config</artifactId>
- <version>1.8.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <description>Configuration files for message-bus</description>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifacts>
- <artifact>
- <file>${project.build.directory}/classes/initial/05-message-bus.xml</file>
- <type>xml</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<snapshot>
- <configuration>
- <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
- <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
- <module>
- <name>messagebus-app-impl</name>
- <type xmlns:binding-impl="urn:opendaylight:params:xml:ns:yang:controller:messagebus:app:impl">binding-impl:messagebus-app-impl</type>
- </module>
- </modules>
- <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
- <service>
- <type xmlns:mb-esr="urn:opendaylight:params:xml:ns:yang:controller:messagebus:spi:eventsourceregistry">mb-esr:event-source-registry</type>
- <instance>
- <name>messagebus-app-impl</name>
- <provider>/modules/module[type='messagebus-app-impl'][name='messagebus-app-impl']</provider>
- </instance>
- </service>
- </services>
- </data>
- </configuration>
- <required-capabilities>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:messagebus:app:impl?module=messagebus-app-impl&revision=2015-02-03</capability>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:messagebus:spi:eventsourceregistry?module=messagebus-event-source-registry&revision=2015-04-02</capability>
- </required-capabilities>
-</snapshot>
+++ /dev/null
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.controller.config.yang.messagebus.app.impl;
-
-import org.opendaylight.controller.config.api.DependencyResolver;
-import org.opendaylight.controller.config.api.ModuleIdentifier;
-import org.opendaylight.controller.config.api.osgi.WaitingServiceTracker;
-import org.opendaylight.controller.messagebus.spi.EventSource;
-import org.opendaylight.controller.messagebus.spi.EventSourceRegistration;
-import org.opendaylight.controller.messagebus.spi.EventSourceRegistry;
-import org.osgi.framework.BundleContext;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@Deprecated
-public class MessageBusAppImplModule extends AbstractMessageBusAppImplModule {
- private static final Logger LOG = LoggerFactory.getLogger(MessageBusAppImplModule.class);
-
- private BundleContext bundleContext;
-
- public BundleContext getBundleContext() {
- return bundleContext;
- }
-
- public void setBundleContext(final BundleContext bundleContext) {
- this.bundleContext = bundleContext;
- }
-
- public MessageBusAppImplModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver) {
- super(identifier, dependencyResolver);
- }
-
- public MessageBusAppImplModule(final ModuleIdentifier identifier, final DependencyResolver dependencyResolver,
- final MessageBusAppImplModule oldModule, final java.lang.AutoCloseable oldInstance) {
- super(identifier, dependencyResolver, oldModule, oldInstance);
- }
-
- @Override
- public java.lang.AutoCloseable createInstance() {
- final WaitingServiceTracker<EventSourceRegistry> tracker =
- WaitingServiceTracker.create(EventSourceRegistry.class, bundleContext);
- final EventSourceRegistry service = tracker.waitForService(WaitingServiceTracker.FIVE_MINUTES);
-
- return new EventSourceRegistry() {
- @Override
- public void close() {
- // We need to close the WaitingServiceTracker however we don't want to close the actual
- // service instance because its life-cycle is controlled via blueprint.
- tracker.close();
- }
-
- @Override
- public <T extends EventSource> EventSourceRegistration<T> registerEventSource(T eventSource) {
- return service.registerEventSource(eventSource);
- }
- };
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-/*
-* Generated file
-*
-* Generated from: yang module name: message-bus-app-impl yang module local name: messagebus-app-impl
-* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Tue Feb 03 09:03:11 CET 2015
-*
-* Do not modify this file unless it is present under src/main directory
-*/
-package org.opendaylight.controller.config.yang.messagebus.app.impl;
-
-import org.opendaylight.controller.config.api.DependencyResolver;
-import org.opendaylight.controller.config.api.DynamicMBeanWithInstance;
-import org.opendaylight.controller.config.spi.Module;
-import org.osgi.framework.BundleContext;
-
-@Deprecated
-public class MessageBusAppImplModuleFactory extends AbstractMessageBusAppImplModuleFactory {
- @Override
- public Module createModule(String instanceName,
- DependencyResolver dependencyResolver,
- BundleContext bundleContext) {
-
- MessageBusAppImplModule module =
- (MessageBusAppImplModule) super.createModule(instanceName,
- dependencyResolver,
- bundleContext);
-
- module.setBundleContext(bundleContext);
-
- return module;
- }
-
- @Override
- public Module createModule(String instanceName,
- DependencyResolver dependencyResolver,
- DynamicMBeanWithInstance old,
- BundleContext bundleContext)
- throws Exception {
-
- MessageBusAppImplModule module =
- (MessageBusAppImplModule) super.createModule(instanceName,
- dependencyResolver,
- old,
- bundleContext);
-
- module.setBundleContext(bundleContext);
-
- return module;
- }
-
-}
+++ /dev/null
-module messagebus-app-impl {
- yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:controller:messagebus:app:impl";
- prefix "binding-impl";
-
- import config { prefix config; revision-date 2013-04-05; }
- import opendaylight-md-sal-binding {prefix sal;}
- import opendaylight-md-sal-dom {prefix dom;}
- import messagebus-event-source-registry {prefix esr;}
-
- description
- "Service definition for Message Bus application implementation.";
-
- revision "2015-02-03" {
- description "Second revision. Message Bus opensourcing";
- }
-
- identity messagebus-app-impl {
- status deprecated;
- base config:module-type;
- config:provided-service esr:event-source-registry;
- config:java-name-prefix MessageBusAppImpl;
- }
-
- augment "/config:modules/config:module/config:configuration" {
- case messagebus-app-impl {
- when "/config:modules/config:module/config:type = 'messagebus-app-impl'";
-
- container binding-broker {
- uses config:service-ref {
- refine type {
- mandatory false;
- config:required-identity sal:binding-broker-osgi-registry;
- }
- }
- }
-
- }
- }
-
-}
+++ /dev/null
-module messagebus-event-source-registry {
- yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:controller:messagebus:spi:eventsourceregistry";
- prefix "mb-esr";
-
- import config { prefix config; revision-date 2013-04-05; }
-
- description
- "Event source registry service interface definition for MessageBus";
-
- revision "2015-04-02" {
- description
- "Initial revision";
- }
-
- identity event-source-registry {
- status deprecated;
- base "config:service-type";
- config:java-class "org.opendaylight.controller.messagebus.spi.EventSourceRegistry";
- config:disable-osgi-service-registration;
- }
-
-}
<module>messagebus-spi</module>
<module>messagebus-impl</module>
<module>messagebus-util</module>
- <module>messagebus-config</module>
<!-- PAX EXAM ITs -->
<module>sal-binding-it</module>