Class ApplicationRenderingContext

java.lang.Object
io.micronaut.starter.feature.lang.ApplicationRenderingContext
Direct Known Subclasses:
GroovyApplicationRenderingContext, JavaApplicationRenderingContext, KotlinApplicationRenderingContext

public abstract class ApplicationRenderingContext extends Object
Represents the base rendering context for generating Micronaut application configuration.
  • Constructor Details

    • ApplicationRenderingContext

      protected ApplicationRenderingContext(String defaultEnvironment, boolean eagerSingletons)
  • Method Details

    • isRequired

      public boolean isRequired()
      Determines if this rendering context is required.
      Returns:
      true if a default environment is set or eager singletons are enabled, false otherwise
    • getContextConfigurer

      @Nullable public @Nullable com.fizzed.rocker.RockerOutput getContextConfigurer()
      Gets the context configurer output if this context is required.
      Returns:
      the rendered context configurer output, or null if not required
    • getRendered

      @NonNull protected abstract @NonNull com.fizzed.rocker.RockerOutput getRendered()
      Gets the rendered Rocker output for this context.
      Returns:
      the rendered RockerOutput
    • isEagerSingletons

      public boolean isEagerSingletons()
      Checks if eager singletons are enabled.
      Returns:
      true if eager singletons are enabled, false otherwise
    • getDefaultEnvironment

      public String getDefaultEnvironment()
      Gets the default environment name.
      Returns:
      the default environment string, may be null