Add methods that allows registering any serializer 51/48251/6
authorTomas Slusny <tomas.slusny@pantheon.tech>
Fri, 11 Nov 2016 10:09:47 +0000 (11:09 +0100)
committerTomas Slusny <tomas.slusny@pantheon.tech>
Thu, 8 Dec 2016 14:03:26 +0000 (14:03 +0000)
commit4231959d8488d0e5e50199703c5619d50428a962
tree0fc799be6d66df109d4ae2999b0eab7b498871d1
parent8cf76973848254c17175f6fb5093ed069ea2805e
Add methods that allows registering any serializer

Add new methods to SwitchConnectionProviderImpl that will allow us
to register any type of OFSerializer and OFDeserializer, so we will
be able to for example register serializers for OpenflowPlugin models
directly in OpenflowPlugin, without requiring changes in
OpenflowJava.
Change HeaderSerializer and HeaderDeserializer to require DataContainer
instead of DataObject.

See also: bug 7136

Change-Id: I002cb787a6db61d864e205d99fafa54692e220a6
Signed-off-by: Tomas Slusny <tomas.slusny@pantheon.tech>
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/DeserializerExtensionProvider.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/HeaderDeserializer.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/HeaderSerializer.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/SerializerExtensionProvider.java
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderImpl.java
openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/connection/SwitchConnectionProviderImpl02Test.java