# Đăng Ký Feature Tường Minh

> Vì sao repo liệt kê feature trong AppFeatures.kt thay cho Class.forName, cách FeatureRegistry từ chối danh sách sai và test giữ nó đúng.

- URL: https://dantech.academy/courses/kotlin-accelerator/engineer-builder/07-dependency-injection/lesson-10-explicit-feature-registration
- Khóa học: [Mobile Action Pro](https://dantech.academy/courses/kotlin-accelerator.md)
- Module: Dependency Injection Với Koin
- Thời lượng: 25 phút
- Độ khó: intermediate
- Truy cập: Dành cho học viên
- English: https://dantech.academy/en/courses/kotlin-accelerator/engineer-builder/07-dependency-injection/lesson-10-explicit-feature-registration.md

## Mục tiêu

- Giải thích vì sao Class.forName bị thay bằng danh sách tường minh trong AppFeatures.kt
- Đọc cách FeatureRegistry và FeatureNavigationRegistry từ chối danh sách rỗng hoặc trùng
- Dùng AppFeaturesTest và FeatureRegistryTest để giữ danh sách feature đúng

## Nội dung bài học

1. Mục Tiêu Bài Học
2. Phần 1: Cách Cũ Là Dò Class Bằng Tên
3. Phần 2: Danh Sách Tường Minh
4. Phần 3: FeatureRegistry Từ Chối Danh Sách Sai
5. Phần 4: Test Giữ Danh Sách Đúng
6. Bài Tập Thực Hành
7. Lộ Trình Đọc Code
8. Dấu Hiệu Cần Tránh
9. Tham Khảo
10. Ý Chính

## Học cùng AI agent

Toàn bộ bài học dành cho học viên của khóa. Học viên mở bài trên web và bấm nút **Markdown** để copy toàn bài, rồi dán vào Claude, ChatGPT, Cursor hoặc agent bạn đang dùng. Nhanh hơn: tạo token ở `/profile/ai-agents` và agent đọc bài trực tiếp qua MCP.

- [Đăng ký khóa học](https://dantech.academy/kotlin-accelerator/checkout)

---

- Bài trước: [Feature Module Pattern](https://dantech.academy/courses/kotlin-accelerator/engineer-builder/07-dependency-injection/lesson-09-feature-module-pattern.md)
- Bài tiếp theo: [ViewModel Injection trong Routes](https://dantech.academy/courses/kotlin-accelerator/engineer-builder/07-dependency-injection/lesson-11-viewmodel-injection-routes.md)
