20f4a39ecd316956d0908e371fa28d13ea5c4c9d
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / PCEPSessionListenerFactory.java
1 /*
2  * Copyright (c) 2013 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 package org.opendaylight.protocol.pcep;
9
10 import java.net.InetAddress;
11
12 import org.opendaylight.protocol.framework.SessionListenerFactory;
13
14 /**
15  * Factory for generating PCEP Session Listeners. Used by a server.
16  */
17 public abstract class PCEPSessionListenerFactory implements SessionListenerFactory {
18
19         /**
20          * Returns one session listener that is registered to this factory
21          * @param address serves as constraint, so that factory is able to
22          * return different listeners for different factories
23          * @return specific session listener
24          */
25         @Override
26         public abstract PCEPSessionListener getSessionListener(InetAddress address);
27
28 }