Class DependencyFactoryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.dependency.DependencyFactoryImpl
-
- All Implemented Interfaces:
DependencyFactory
public class DependencyFactoryImpl extends Object implements DependencyFactory
Created by IntelliJ IDEA.- Author:
- kir
-
-
Constructor Summary
Constructors Constructor Description DependencyFactoryImpl(BuildTypeIdentifiersManager buildTypeIdentifiersManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DependencyImplcreateDependency(String buildTypeExternalId)Creates a new dependency, which depends on given build configuration.DependencyImplcreateDependency(String buildTypeExternalId, Function<String,EntityId<String>> externalIdResolver)DependencyImplcreateDependency(String externalId, DependencyOptions options)Creates a new dependency with specified build configuration external id and options.DependencycreateDependency(BuildType buildType)Creates a new dependency, which depends on given build configuration.DependencycreateDependencyByInternalId(String buildTypeInternalId)Deprecated.DependencyImplcreateUnresolvedDependency(String externalId, DependencyOptions options)voidsetProjectManager(ProjectManager projectManager)
-
-
-
Constructor Detail
-
DependencyFactoryImpl
public DependencyFactoryImpl(@NotNull BuildTypeIdentifiersManager buildTypeIdentifiersManager)
-
-
Method Detail
-
setProjectManager
public void setProjectManager(@NotNull ProjectManager projectManager)
-
createDependency
@NotNull public Dependency createDependency(@NotNull BuildType buildType) throws InvalidIdentifierException
Description copied from interface:DependencyFactoryCreates a new dependency, which depends on given build configuration.- Specified by:
createDependencyin interfaceDependencyFactory- Parameters:
buildType- the build type to depend on.- Returns:
- created dependency.
- Throws:
InvalidIdentifierException- See Also:
DependencyFactory.createDependency(String)
-
createDependency
@NotNull public DependencyImpl createDependency(@NotNull String buildTypeExternalId) throws InvalidIdentifierException
Description copied from interface:DependencyFactoryCreates a new dependency, which depends on given build configuration.- Specified by:
createDependencyin interfaceDependencyFactory- Parameters:
buildTypeExternalId- the external id of the build type to depend on.- Returns:
- created dependency.
- Throws:
InvalidIdentifierException- See Also:
DependencyFactory.createDependency(BuildType)
-
createDependency
@NotNull public DependencyImpl createDependency(@NotNull String buildTypeExternalId, Function<String,EntityId<String>> externalIdResolver) throws InvalidIdentifierException
- Throws:
InvalidIdentifierException
-
createDependency
@NotNull public DependencyImpl createDependency(@NotNull String externalId, @NotNull DependencyOptions options) throws InvalidIdentifierException
Description copied from interface:DependencyFactoryCreates a new dependency with specified build configuration external id and options.- Specified by:
createDependencyin interfaceDependencyFactory- Parameters:
externalId- the external id of the build type to depend on.options- dependency options- Returns:
- new dependency
- Throws:
InvalidIdentifierException
-
createUnresolvedDependency
@NotNull public DependencyImpl createUnresolvedDependency(@NotNull String externalId, @NotNull DependencyOptions options) throws InvalidIdentifierException
- Throws:
InvalidIdentifierException
-
createDependencyByInternalId
@Deprecated @NotNull public Dependency createDependencyByInternalId(@NotNull String buildTypeInternalId)
Deprecated.Description copied from interface:DependencyFactoryCreate dependency, which depends on given build configuration- Specified by:
createDependencyByInternalIdin interfaceDependencyFactory- Parameters:
buildTypeInternalId- build configuration internal id to depend on- Returns:
- new dependency object
- See Also:
DependencyFactory.createDependency(String),DependencyFactory.createDependency(BuildType)
-
-