Adding more docs to Serialization and making sure that the Protobuf stuff gets its manifests
This commit is contained in:
parent
cffe60bf43
commit
e78739f7e5
5 changed files with 29 additions and 13 deletions
|
|
@ -7,9 +7,12 @@ package akka.serialization
|
|||
import akka.serialization.Serializer
|
||||
import com.google.protobuf.Message
|
||||
|
||||
/**
|
||||
* This Serializer serializes `com.google.protobuf.Message`s
|
||||
*/
|
||||
class ProtobufSerializer extends Serializer {
|
||||
val ARRAY_OF_BYTE_ARRAY = Array[Class[_]](classOf[Array[Byte]])
|
||||
def includeManifest: Boolean = false
|
||||
def includeManifest: Boolean = true
|
||||
def identifier = 2: Serializer.Identifier
|
||||
|
||||
def toBinary(obj: AnyRef): Array[Byte] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue