Interface Dependency

All Superinterfaces:
ArtifactCoords
All Known Subinterfaces:
ResolvableDependency, ResolvedDependency
All Known Implementing Classes:
AppArtifact, AppDependency, ArtifactDependency, ResolvedArtifactDependency, ResolvedDependencyBuilder

public interface Dependency extends ArtifactCoords
  • Field Details

  • Method Details

    • of

      static Dependency of(String groupId, String artifactId)
    • of

      static Dependency of(String groupId, String artifactId, String version)
    • pomImport

      static Dependency pomImport(String groupId, String artifactId, String version)
    • getScope

      String getScope()
    • getExclusions

      default Collection<ArtifactKey> getExclusions()
    • getFlags

      int getFlags()
    • isOptional

      default boolean isOptional()
    • isDirect

      default boolean isDirect()
    • isRuntimeExtensionArtifact

      default boolean isRuntimeExtensionArtifact()
    • isRuntimeCp

      default boolean isRuntimeCp()
    • isDeploymentCp

      default boolean isDeploymentCp()
    • isWorkspaceModule

      default boolean isWorkspaceModule()
    • isReloadable

      default boolean isReloadable()
    • isClassLoaderParentFirst

      default boolean isClassLoaderParentFirst()
    • isFlagSet

      default boolean isFlagSet(int flag)
      Checks whether a dependency has a given flag set. If the value of the flag argument combines multiple flags, the implementation will return true only if the dependency has all the flags set.
      Parameters:
      flag - flag (or flags) to check
      Returns:
      true if the flag is set, otherwise false
    • isAnyFlagSet

      default boolean isAnyFlagSet(int flags)
      Checks whether a dependency has any of the flags combined in the value of flags set.
      Parameters:
      flags - flags to check
      Returns:
      true, if any of the flags is set, otherwise - false
    • hasAnyFlag

      default boolean hasAnyFlag(int... flags)
      Checks whether any of the flags are set on a dependency
      Parameters:
      flags - flags to check
      Returns:
      true if any of the flags are set, otherwise false
    • hasAllFlags

      default boolean hasAllFlags(int... flags)
      Checks whether all the passed in flags are set on a dependency
      Parameters:
      flags - flags to check
      Returns:
      true if all the passed in flags are set on a dependency, otherwise false