Bug 488: Removed BundleContext usage for registering to DOM Components.
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / RegisterChangeListener.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.cluster.datastore.messages;
10
11 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker;
12 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeListener;
13 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
14 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
15
16 public class RegisterChangeListener {
17   private final InstanceIdentifier path;
18   private final AsyncDataChangeListener<InstanceIdentifier, NormalizedNode<?, ?>> listener;
19   private final AsyncDataBroker.DataChangeScope scope;
20
21
22   public RegisterChangeListener(InstanceIdentifier path, AsyncDataChangeListener<InstanceIdentifier, NormalizedNode<?, ?>> listener, AsyncDataBroker.DataChangeScope scope) {
23     this.path = path;
24     this.listener = listener;
25     this.scope = scope;
26   }
27
28   public InstanceIdentifier getPath() {
29     return path;
30   }
31
32   public AsyncDataChangeListener<InstanceIdentifier, NormalizedNode<?, ?>> getListener() {
33     return listener;
34   }
35
36   public AsyncDataBroker.DataChangeScope getScope() {
37     return scope;
38   }
39 }