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 DependencyImpl
createDependency(String buildTypeExternalId)
Creates a new dependency, which depends on given build configuration.DependencyImpl
createDependency(String buildTypeExternalId, Function<String,EntityId<String>> externalIdResolver)
DependencyImpl
createDependency(String externalId, DependencyOptions options)
Creates a new dependency with specified build configuration external id and options.Dependency
createDependency(BuildType buildType)
Creates a new dependency, which depends on given build configuration.Dependency
createDependencyByInternalId(String buildTypeInternalId)
Deprecated.DependencyImpl
createUnresolvedDependency(String externalId, DependencyOptions options)
void
setProjectManager(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:DependencyFactory
Creates a new dependency, which depends on given build configuration.- Specified by:
createDependency
in 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:DependencyFactory
Creates a new dependency, which depends on given build configuration.- Specified by:
createDependency
in 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:DependencyFactory
Creates a new dependency with specified build configuration external id and options.- Specified by:
createDependency
in 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:DependencyFactory
Create dependency, which depends on given build configuration- Specified by:
createDependencyByInternalId
in interfaceDependencyFactory
- Parameters:
buildTypeInternalId
- build configuration internal id to depend on- Returns:
- new dependency object
- See Also:
DependencyFactory.createDependency(String)
,DependencyFactory.createDependency(BuildType)
-
-