MCPcopy Create free account
hub / github.com/cloudfoundry/java-buildpack / JRE

Interface JRE

src/java/jres/jre.go:28–51  ·  view source on GitHub ↗

JRE represents a Java Runtime Environment provider

Source from the content-addressed store, hash-verified

26
27// JRE represents a Java Runtime Environment provider
28type 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
54type Registry struct {

Implementers 2

ZingJREsrc/java/jres/zing.go
BaseJREsrc/java/jres/base_jre.go

Calls

no outgoing calls

Tested by

no test coverage detected