parseMap +1

-- 
Konrad `ktoso` Malawski
Akka <http://akka.io> @ Lightbend <http://lightbend.com>

On 9 September 2016 at 22:10:33, Viktor Klang (viktor.kl...@gmail.com)
wrote:

ConfigFactory.parseMap?

--
Cheers,
√

On Sep 9, 2016 22:01, "kraythe" <kray...@gmail.com> wrote:

> Yeah, that much I know. However, I have a map of Class -> id in code and I
> want to create serialization bindings to this serializer for each of the
> types in that map's key set and assign type ids based on the map. What I am
> trying to do is figure out how to create the ConfigValue object
> programmatically to accomplish that.
>
> Thanks.
>
> On Friday, September 9, 2016 at 2:55:32 PM UTC-5, √ wrote:
>>
>> The ActorSystem takes an optional Config when created[1], create that
>> Config object programmatically and do 
>> withFallback(ConfigFactory.load(classloader))
>>
>>
>>
>> [1]: https://github.com/akka/akka/blob/master/akka-actor/src
>> /main/scala/akka/actor/ActorSystem.scala#L141
>>
>> On Fri, Sep 9, 2016 at 9:49 PM, kraythe <kra...@gmail.com> wrote:
>>
>>> I am using Akka-kryo by Roman Levenshtein
>>> <https://github.com/romix/akka-kryo-serialization> as recommended on
>>> the akka serialization page. I know all about Kryo and have used it many
>>> times before. I can integrate it with manual config and it works fine.
>>> Thats not my point. I want to configure the bindings programatically.
>>>
>>> On Friday, September 9, 2016 at 2:44:42 PM UTC-5, Justin du coeur wrote:
>>>>
>>>> Don't have an answer off the cuff -- the answer probably depends on the
>>>> Kryo plugin that you're using.  My recommendation is to take a dig through 
>>>> the
>>>> akka-kryo-serialization source code
>>>> <https://github.com/romix/akka-kryo-serialization>, particularly the
>>>> KryoSerializer class
>>>> <https://github.com/romix/akka-kryo-serialization/blob/master/src/main/scala/com/romix/akka/serialization/kryo/KryoSerializer.scala>.
>>>> I learned a huge amount by going through that with the Kryo
>>>> documentation <https://github.com/EsotericSoftware/kryo> and Javadocs
>>>> <http://javadox.com/com.esotericsoftware.kryo/kryo/2.23.0/com/esotericsoftware/kryo/package-summary.html>
>>>>  open;
>>>> it's not horribly complex, and the process of figuring out how it works
>>>> teaches pretty much everything critical about using Kryo with Akka...
>>>>
>>>> On Fri, Sep 9, 2016 at 3:29 PM, kraythe <kra...@gmail.com> wrote:
>>>>
>>>>> Greetings,
>>>>>
>>>>> In reference to the configuration of serialization bindings I would
>>>>> like to do this programatically instead of using the config file. I have a
>>>>> type with a static map of types and binding ids based on a Kryo plugin to
>>>>> Akka. What I would like to do is create bindings based on that type and
>>>>> configure the system accordingly. Does anyone have any example code of how
>>>>> this can be done assuming I have access to the config object already? I
>>>>> know I can use the default config.with("serialization-bindings".
>>>>> value) but I don't know the proper way to construct that value and avoid
>>>>> overwriting anything default in the config. The documentation I have read
>>>>> is not explanatory on this. http://doc.akka.io/docs/
>>>>> akka/snapshot/scala/serialization.html
>>>>>
>>>>> Thanks a bunch.
>>>>> --
>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/c
>>>>> urrent/additional/faq.html
>>>>> >>>>>>>>>> Search the archives: https://groups.google.com/grou
>>>>> p/akka-user
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Akka User List" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to akka-user+...@googlegroups.com.
>>>>> To post to this group, send email to akka...@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/akka-user.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/c
>>> urrent/additional/faq.html
>>> >>>>>>>>>> Search the archives: https://groups.google.com/grou
>>> p/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Cheers,
>> √
>>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups
"Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to