Updated extension registration keys
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / util / TypeKeyMaker.java
1 /*\r
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 package org.opendaylight.openflowjava.protocol.impl.util;\r
10 \r
11 import org.opendaylight.openflowjava.protocol.api.extensibility.MessageTypeKey;\r
12 \r
13 /**\r
14  * @author michal.polkorab\r
15  * @param <T> \r
16  */\r
17 public interface TypeKeyMaker<T> {\r
18 \r
19     /**\r
20      * @param entry\r
21      * @return key that will be used for serializer lookup in \r
22      * the serializer registry\r
23      */\r
24     public abstract MessageTypeKey<?> make(T entry);\r
25 \r
26 }\r