JRE represents a Java Runtime Environment provider
| 26 | |
| 27 | // JRE represents a Java Runtime Environment provider |
| 28 | type JRE interface { |
| 29 | // Name returns the name of this JRE provider (e.g., "OpenJDK", "Zulu") |
| 30 | Name() string |
| 31 | |
| 32 | // Detect returns true if this JRE should be used |
| 33 | Detect() (bool, error) |
| 34 | |
| 35 | // Supply installs the JRE and its components (memory calculator, jvmkill) |
| 36 | Supply() error |
| 37 | |
| 38 | // Finalize performs any final JRE configuration |
| 39 | Finalize() error |
| 40 | |
| 41 | // JavaHome returns the path to JAVA_HOME |
| 42 | JavaHome() string |
| 43 | |
| 44 | // Version returns the installed JRE version |
| 45 | Version() string |
| 46 | |
| 47 | // MemoryCalculatorCommand returns the shell command snippet to run memory calculator |
| 48 | // This command is prepended to the container startup command |
| 49 | // Returns empty string if memory calculator is not installed |
| 50 | MemoryCalculatorCommand() string |
| 51 | } |
| 52 | |
| 53 | // Registry manages multiple JRE providers |
| 54 | type Registry struct { |
no outgoing calls
no test coverage detected