You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/20 15:19:13 UTC

[GitHub] marschall commented on issue #10: JarLoader breaks strong encapsulation of JDK classes

marschall commented on issue #10: JarLoader breaks strong encapsulation of JDK classes
URL: https://github.com/apache/incubator-openwhisk-runtime-java/issues/10#issuecomment-367010709
 
 
   It's though, I know because we have an internal project that has the same issue ?
   What we decided to do is that code has to stop using `System.getenv()` and instead use an abstraction that can use a `Map` in tests and `System.getenv()` in production.
   
   For you it may be a bit more complicated. Ultimately you can't have `__OW_API_KEY`, `__OW_NAMESPACE`, `__OW_ACTION_NAME`, `__OW_ACTIVATION_ID`, `__OW_DEADLINE` as simulated environment variables. You'll have to find a different way in your programming model to access this configuration.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services