Class ForceDevelopmentImposition

  • All Implemented Interfaces:
    Imposition

    public final class ForceDevelopmentImposition
    extends Object
    implements Imposition
    Forces whether to start the application in ServerConfig.isDevelopment() mode or not.

    This imposition is used by ServerConfigBuilder. If present, the imposed value will be used regardless of any previously specified setting on the builder.

    Note, this can be used to force development mode or force not development mode. Though, it is more commonly used for the former.

    Since:
    1.2
    See Also:
    Impositions
    • Method Detail

      • of

        public static ForceDevelopmentImposition of​(boolean development)
        Creates a new imposition of the specified value.
        Parameters:
        development - the value to impose
        Returns:
        a newly created imposition
      • isDevelopment

        public boolean isDevelopment()
        The value to impose.
        Returns:
        the value to impose