BUG-58: refactor to take advantage of netty
[bgpcep.git] / framework / src / main / java / org / opendaylight / protocol / framework / SessionListenerFactory.java
index 542c4f8a6d5e6bc15b113651cd53647f85179a4d..5b5c5fd2032825af01d752b7dc95e05f16ec1040 100644 (file)
@@ -7,19 +7,16 @@
  */
 package org.opendaylight.protocol.framework;
 
-import java.net.InetAddress;
 
 /**
  * Factory for generating Session Listeners. Used by a server. This interface should be
  * implemented by a protocol specific abstract class, that is extended by
  * a final class that implements the methods.
  */
-public interface SessionListenerFactory {
+public interface SessionListenerFactory<T extends SessionListener<?, ?, ?>> {
        /**
         * Returns one session listener
-        * @param address serves as constraint, so that factory is able to
-        * return different listeners for different factories
         * @return specific session listener
         */
-       public SessionListener getSessionListener(final InetAddress address);
+       public T getSessionListener();
 }