Re: [akka-user] Parsing Configuration

2017-11-26 Thread Konrad “ktoso” Malawski
Hard to tell without knowing exactly what you’re doing there, but usually
an explicit resolve is not needed.

-- 
Cheers,
Konrad 'ktoso ' Malawski
Akka  @ Lightbend 

On November 27, 2017 at 13:02:41, Joseph Mansigian (
joseph.c.mansig...@gmail.com) wrote:

Hello All,

I am working with some legacy Scala with Akka code.
The application.conf file makes use of substitutions.
Instead of receiving an automatic parse of the
application.conf file the code explicitly parses the file
and resolves the substitutions as thus:

val config_raw = ConfigFactory.parseFile(new File("application.conf"))
val config = config_raw.resolve

and subsequently uses config when creating an ActorSystem.

I understand that explicit parsing and resolving was necessary at one time
if there were substitutions in application.conf.  If this is no longer
necessary
I would like to drop the explicit parsing and resolving.  Can I ?

I am using Play Framework 2.6.6, Scala 2.12.2, Akka 2.5.4

Thank You
--
>> 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.


[akka-user] Parsing Configuration

2017-11-26 Thread Joseph Mansigian
Hello All,

I am working with some legacy Scala with Akka code.
The application.conf file makes use of substitutions.
Instead of receiving an automatic parse of the
application.conf file the code explicitly parses the file
and resolves the substitutions as thus:

val config_raw = ConfigFactory.parseFile(new File("application.conf"))
val config = config_raw.resolve

and subsequently uses config when creating an ActorSystem.

I understand that explicit parsing and resolving was necessary at one time 
if there were substitutions in application.conf.  If this is no longer 
necessary
I would like to drop the explicit parsing and resolving.  Can I ?

I am using Play Framework 2.6.6, Scala 2.12.2, Akka 2.5.4

Thank You

-- 
>>  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.