Class ApplicationRenderingContext
java.lang.Object
io.micronaut.starter.feature.lang.ApplicationRenderingContext
- Direct Known Subclasses:
GroovyApplicationRenderingContext
,JavaApplicationRenderingContext
,KotlinApplicationRenderingContext
Represents the base rendering context for generating Micronaut application configuration.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ApplicationRenderingContext
(String defaultEnvironment, boolean eagerSingletons) -
Method Summary
Modifier and TypeMethodDescription@Nullable com.fizzed.rocker.RockerOutput
Gets the context configurer output if this context is required.Gets the default environment name.protected abstract @NonNull com.fizzed.rocker.RockerOutput
Gets the rendered Rocker output for this context.boolean
Checks if eager singletons are enabled.boolean
Determines if this rendering context is required.
-
Constructor Details
-
ApplicationRenderingContext
-
-
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
Gets the default environment name.- Returns:
- the default environment string, may be null
-