Class DockerDefaultBaseImages

  • All Implemented Interfaces:
    com.oracle.bedrock.Option

    public class DockerDefaultBaseImages
    extends Object
    implements com.oracle.bedrock.Option
    A representation of a class hierarchy that maps Application Classes to Docker base images.

    Note: instances of DockerDefaultBaseImages are immutable so calls to the with(Class, String) method return a new instance of DockerDefaultBaseImages that is a copy of the original instance with the addition applied.

    Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
    Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

    Author:
    Jonathan Knight
    • Constructor Detail

      • DockerDefaultBaseImages

        public DockerDefaultBaseImages​(Class<? extends com.oracle.bedrock.runtime.Application> applicationClass,
                                       String baseImageName)
        Create a DockerDefaultBaseImages with the specified root application class and base image name to be used for that class.
        Parameters:
        applicationClass - the application class
        baseImageName - the base image to use for classes
    • Method Detail

      • getBaseImage

        public String getBaseImage​(Class<? extends com.oracle.bedrock.runtime.Application> applicationClass)
        Obtain the base image to use for the given Class.
        Parameters:
        applicationClass - the Class to find the base image for
        Returns:
        the base image to use for the specified class or null if the specified class is not the same as or a sub class of the root class of this tree