MCPcopy Index your code
hub / github.com/cloudfoundry/java-buildpack / resolveJRE

Function resolveJRE

src/java/finalize/finalize.go:145–153  ·  view source on GitHub ↗

resolveJRE finds the JRE registered under the given name.

(ctx *common.Context, name string)

Source from the content-addressed store, hash-verified

143
144// resolveJRE finds the JRE registered under the given name.
145func resolveJRE(ctx *common.Context, name string) (jres.JRE, error) {
146 registry := jres.NewRegistry(ctx)
147 registry.RegisterStandardJREs()
148 jre := registry.Get(name)
149 if jre == nil {
150 return nil, fmt.Errorf("no JRE registered with name %q", name)
151 }
152 return jre, nil
153}
154
155// finalizeJRE finalizes the JRE configuration (memory calculator, jvmkill, etc.)
156func (f *Finalizer) finalizeJRE() error {

Callers 1

RunFunction · 0.85

Calls 3

RegisterStandardJREsMethod · 0.95
GetMethod · 0.95
NewRegistryFunction · 0.92

Tested by

no test coverage detected