Objlab
← 返回场景
第 2 级 - 场景说明Refactoring and conversion

Gluecode

A scenario showing how legacy code can be normalized, encapsulated and moved into a more readable structure without radical rewrites.

目标Gluecode
模式Code refactor
连接3 连接
可观测输出4 可观测输出
Gateway: www.objlab.it·Mock 演示:已启用·模式: Code refactor
第 3 级 - 操作演示

此视图以 mock 数据、日志和可观测输出展示用例的操作细节。正式版本通过 LAN 后端或 Objlab gateway 运行。

模式

该演示使用合成数据,不直接调用 LAN 虚拟机。

Mock 指标

  • Modules analyzed: 18 - Legacy classes and services identified
  • Adapters generated: 7 - Compatibility layer ready
  • Refactor tasks: 14 - Priority actions in the modernization plan

涉及的软件

  • Legacy adapter
  • Code refactoring
  • Transformation layer

后端与编排

  • www.objlab.it gateway
  • Gluecode API
  • audit log

演示流程

  1. Open the legacy block
  2. Choose the refactoring path
  3. Run the demo flow
  4. Compare before and after

Mock 请求

{ "project": "legacy-app", "mode": "refactor", "goal": "adapter-layer", "dry_run": true }

Mock 响应

{ "status": "ok", "modules": 18, "adapters": 7, "diff": ["rename service", "extract API boundary"] }

可观测输出

Refactoring mapAdapterLogical diffModernization tasks

执行日志

Scan

Legacy modules and internal dependencies detected

Plan

Incremental refactoring plan created

Review

3 points require source code validation