Package io.quarkus.bootstrap.model
Interface ApplicationModel
- All Known Implementing Classes:
DefaultApplicationModel
public interface ApplicationModel
Application dependency model. Allows to explore application dependencies,
Quarkus platforms found in the project configuration and Quarkus platform configuration properties.
-
Method Summary
Modifier and TypeMethodDescriptionMain application artifactdefault WorkspaceModule
Main workspace module of an application.Returns application dependencies that are included into the runtime and augmentation (Quarkus build time) classpath.getDependencies
(int flags) Returns application dependencies with the requested flags set.getDependenciesWithAnyFlag
(int flags) Returns application dependencies that have any of the flags combined in the value of theflags
arguments set.default Iterable<ResolvedDependency>
getDependenciesWithAnyFlag
(int... flags) Returns application dependencies that have any of the flags passed in as arguments set.Extension capability requirements collected from the extensions found on the classpath of an applicationExtension Dev mode configuration options.Class loading lower priority artifactsClass loading parent-first artifactsQuarkus platform configuration propertiesQuarkus platforms (BOMs) found in the configuration of an applicationLocal project dependencies that are live-reloadable in dev mode.Resources that should be removed from the classpath.Class loading runner parent-first artifactsRuntime dependencies of an applicationdefault Collection<WorkspaceModule>
All the workspace modules found as dependencies of an application
-
Method Details
-
getAppArtifact
ResolvedDependency getAppArtifact()Main application artifact- Returns:
- main application artifact
-
getDependencies
Collection<ResolvedDependency> getDependencies()Returns application dependencies that are included into the runtime and augmentation (Quarkus build time) classpath.- Returns:
- application runtime and build time dependencies
-
getDependencies
Returns application dependencies with the requested flags set.- Parameters:
flags
- dependency flags that must be set for a dependency to be included in the result- Returns:
- application dependencies that have requested flags set
-
getDependenciesWithAnyFlag
Returns application dependencies that have any of the flags combined in the value of theflags
arguments set.- Parameters:
flags
- dependency flags to match- Returns:
- application dependencies that matched the flags
-
getDependenciesWithAnyFlag
Returns application dependencies that have any of the flags passed in as arguments set.- Parameters:
flags
- dependency flags to match- Returns:
- application dependencies that matched the flags
-
getRuntimeDependencies
Collection<ResolvedDependency> getRuntimeDependencies()Runtime dependencies of an application- Returns:
- runtime dependencies of an application
-
getPlatforms
PlatformImports getPlatforms()Quarkus platforms (BOMs) found in the configuration of an application- Returns:
- Quarkus platforms (BOMs) found in the configuration of an application
-
getPlatformProperties
Quarkus platform configuration properties- Returns:
- Quarkus platform configuration properties
-
getExtensionCapabilities
Collection<ExtensionCapabilities> getExtensionCapabilities()Extension capability requirements collected from the extensions found on the classpath of an application- Returns:
- Extension capability requirements collected from the extensions found on the classpath of an application
-
getParentFirst
Set<ArtifactKey> getParentFirst()Class loading parent-first artifacts- Returns:
- class loading parent-first artifacts
-
getRunnerParentFirst
Set<ArtifactKey> getRunnerParentFirst()Class loading runner parent-first artifacts- Returns:
- class loading runner parent-first artifacts
-
getLowerPriorityArtifacts
Set<ArtifactKey> getLowerPriorityArtifacts()Class loading lower priority artifacts- Returns:
- class loading lower priority artifacts
-
getReloadableWorkspaceDependencies
Set<ArtifactKey> getReloadableWorkspaceDependencies()Local project dependencies that are live-reloadable in dev mode.- Returns:
- local project dependencies that are live-reloadable in dev mode.
-
getRemovedResources
Map<ArtifactKey,Set<String>> getRemovedResources()Resources that should be removed from the classpath.- Returns:
- resources that should be removed from the classpath
-
getApplicationModule
Main workspace module of an application. Could be null, in case the project is not available during the build.- Returns:
- main workspace module of an application, could be null, in case the project is not available during the build
-
getWorkspaceModules
All the workspace modules found as dependencies of an application- Returns:
- all the workspace modules found as dependencies of an application
-
getExtensionDevModeConfig
Collection<ExtensionDevModeConfig> getExtensionDevModeConfig()Extension Dev mode configuration options.- Returns:
- extension Dev mode configuration options
-