There are ways to get the details of the run time "-XX:" parameters
passed to the JVM as some java code is compiled and executed and, of
course, you also get the System.{getenv(), getProperties(), ...} and
input parameters passed into the running instance from your code, but
what kind of strategies or applications are being used to customize a
running instance?

As part of my unit tests at times I need to marshall some data before
passing it into my application and/or set up many different input
parameters. I went monkey and included some name-protocolled files in
"user.dir", "user.home" and one step below "java.home" as well as
"user.name", the start time of the running application, ... to setup
the name of my log files, decide if I wanted to redirect log
System.{out or err} to files or having them dump the values on the
screen ... instead to having to do this programmatically. I found a
question asked 13 years and 8 months ago about these kinds of things:

https://stackoverflow.com/questions/977022/current-directory-in-java-properties-file

I think in java you could use the reflection API to strategize a
solution to those kinds of problems. Do you know of any application
taking care of such issues or strategies used to deal with them?

lbrtchx

Reply via email to