Skip to content

Commit

Permalink
register deprecate bean alias name for ApplicationRuntimeModel (#1263)
Browse files Browse the repository at this point in the history
Co-authored-by: 致节 <[email protected]>
  • Loading branch information
HzjNeverStop and 致节 authored Nov 7, 2023
1 parent 93aee23 commit 0bb15c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public SofaModuleContextLifecycle sofaModuleContextLifecycle(PipelineContext pip
return new SofaModuleContextLifecycle(pipelineContext);
}

@Bean(ApplicationRuntimeModel.APPLICATION_RUNTIME_MODEL_NAME)
@Bean({ ApplicationRuntimeModel.APPLICATION_RUNTIME_MODEL_NAME,
ApplicationRuntimeModel.APPLICATION })
@ConditionalOnMissingBean
public ApplicationRuntimeModel applicationRuntimeModel(ModuleDeploymentValidator moduleDeploymentValidator,
SofaModuleProfileChecker sofaModuleProfileChecker) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
public class ApplicationRuntimeModel implements IsleDeploymentModel {

public static final String APPLICATION_RUNTIME_MODEL_NAME = "APPLICATION_RUNTIME_MODEL";

@Deprecated
public static final String APPLICATION = "SOFABOOT-APPLICATION";
/** deploys */
private final List<DeploymentDescriptor> deploys = new ArrayList<>();
/** inactive deploys */
Expand Down

0 comments on commit 0bb15c4

Please sign in to comment.