Fix checkstyle impl/common and impl/configuration
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / common / ItemLifeCycleSourceImpl.java
1 /*
2  * Copyright (c) 2015 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.openflowplugin.impl.common;
10
11 import javax.annotation.Nullable;
12 import org.opendaylight.openflowplugin.api.openflow.rpc.ItemLifeCycleKeeper;
13 import org.opendaylight.openflowplugin.api.openflow.rpc.ItemLifeCycleSource;
14 import org.opendaylight.openflowplugin.api.openflow.rpc.listener.ItemLifecycleListener;
15
16 /**
17  * simple standalone {@link ItemLifeCycleSource} implementation.
18  */
19 public class ItemLifeCycleSourceImpl implements ItemLifeCycleKeeper {
20
21     private ItemLifecycleListener itemLifecycleListener;
22
23     @Override
24     public void setItemLifecycleListener(@Nullable ItemLifecycleListener itemLifecycleListener) {
25
26         this.itemLifecycleListener = itemLifecycleListener;
27     }
28
29     @Override
30     public ItemLifecycleListener getItemLifecycleListener() {
31         return itemLifecycleListener;
32     }
33 }