Skip to content

MessagePack For Android #15

@muga

Description

@muga

Hi Mikołaj,

I saw your code on mikkoz/msgpack-java.git. It is very nice!

The following is my idea for consolidating your contribution and the
existing msgpack-java. The idea is based on subproject-nization
(loose coupling). For example,

msgpack-java/
    msgpack-core/
      # a core library of msgpack-java
      # includes org.msgpack.{packer,template,type,unpacker} packages
    msgpack-template-generator/
      # includes org.msgpack.template.builder packages
    msgpack-beans/
      # includes Beans library of the existing msgpack-java
    msgpack-default/
      # all-in-one project
    msgpack-android/
      # includes custom beans (your code is here)
    ...

In my idea, if you execute the following commands, msgpack-java for
Android may be created by maven. msgpack-java for Android uses the
artifact of the msgpack-android subproject.

$ cd msgpack-java/msgpack-android
$ mvn package

On the other hand, if you execute the following, msgpack-java uses
msgpack-beans artifact and is created by maven.

$ cd msgpack-java/msgpack-default
$ mvn package

What do you think about the above idea?

Thanks,
Muga Nishizawa

On Mon, Jun 25, 2012 at 3:00 AM, MK spamnij_mnie@interia.pl wrote:

Hi,

done! Here's the code:
https://github.com/mikkoz/msgpack-java
https://github.com/mikkoz/msgpack-rpc/tree/master/java

Notes:
-I haven't managed to test the server on Android with this code yet (it
corresponds to the earlier version 'though, and I have tested the client,
and surefire is happy when ran).
-Comparatively a lot of time now went into determining license compliance
with Apache Harmony. I believe everything's OK, but feel free to check that.
-I've implemented the solution to the discussed RPC problem as a Factory
class. It may be borderline enterprisey, but I think it's the most robust
variant (the class is SocketChannelFactoryFactory).
-I wasn't sure about the copyright declaration in
SocketChannelFactoryFactory, please let me know whether it's OK.

Comments and questions are certainly welcome!

Cheers,
Mikołaj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions