Class VariableSubstitutorFactoryImpl
java.lang.Object
com.atlassian.bamboo.variable.substitutor.VariableSubstitutorFactoryImpl
- All Implemented Interfaces:
VariableSubstitutorFactory
Bean creating instances of
VariableSubstitutor
for various contexts.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull VariableSubstitutor
newSubstitutorForCommonContext
(@NotNull CommonContext commonContext) @NotNull VariableSubstitutor
newSubstitutorForDeploymentResult
(long deploymentResultId) @NotNull VariableSubstitutor
@NotNull VariableSubstitutor
newSubstitutorForPlan
(@NotNull ImmutablePlan plan) @NotNull VariableSubstitutor
newSubstitutorForVariables
(@NotNull Map<String, VariableDefinitionContext> variablesContextMap) void
setAdministrationConfigurationAccessor
(AdministrationConfigurationAccessor administrationConfigurationAccessor) void
setAgentContext
(AgentContext agentContext) void
setBuildDirectoryManager
(BuildDirectoryManager buildDirectoryManager) void
setBuildLoggerManager
(BuildLoggerManager buildLoggerManager) void
setCapabilityContext
(CapabilityContext capabilityContext) void
setDeploymentResultService
(DeploymentResultService deploymentResultService) void
setVariableDefinitionManager
(VariableDefinitionManager variableDefinitionManager) void
setVcsRepositoryManager
(VcsRepositoryManager vcsRepositoryManager)
-
Constructor Details
-
VariableSubstitutorFactoryImpl
public VariableSubstitutorFactoryImpl()
-
-
Method Details
-
newSubstitutorForGlobalContext
- Specified by:
newSubstitutorForGlobalContext
in interfaceVariableSubstitutorFactory
- Returns:
- variable substitutor initiated with known global variables
-
newSubstitutorForPlan
@NotNull public @NotNull VariableSubstitutor newSubstitutorForPlan(@NotNull @NotNull ImmutablePlan plan) - Specified by:
newSubstitutorForPlan
in interfaceVariableSubstitutorFactory
- Returns:
- variable substitutor initiated with known global and plan variables
-
newSubstitutorForCommonContext
@NotNull public @NotNull VariableSubstitutor newSubstitutorForCommonContext(@NotNull @NotNull CommonContext commonContext) - Specified by:
newSubstitutorForCommonContext
in interfaceVariableSubstitutorFactory
- Returns:
- variable substitutor initiated with global, plan and build/deployment context variables (including result-scoped variables, automatically generated variables, etc.)
-
newSubstitutorForVariables
@NotNull public @NotNull VariableSubstitutor newSubstitutorForVariables(@NotNull @NotNull Map<String, VariableDefinitionContext> variablesContextMap) - Specified by:
newSubstitutorForVariables
in interfaceVariableSubstitutorFactory
- Returns:
- variable substitutor initiated with variables as argument
-
newSubstitutorForDeploymentResult
@NotNull public @NotNull VariableSubstitutor newSubstitutorForDeploymentResult(long deploymentResultId) - Specified by:
newSubstitutorForDeploymentResult
in interfaceVariableSubstitutorFactory
- Returns:
- variable substitutor initiated with variables from deployment result
-
setBuildLoggerManager
-
setCapabilityContext
-
setAdministrationConfigurationAccessor
public void setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor) -
setAgentContext
-
setBuildDirectoryManager
-
setVariableDefinitionManager
-
setVcsRepositoryManager
-
setDeploymentResultService
-