lutece-patterns

Document Lutece 8 architectural patterns including layered design and CDI usage.

3|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/lutece-platform/lutece-dev-plugin-claude --skill lutece-patterns-lutece-platform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lutece-patterns
Source: https://github.com/lutece-platform/lutece-dev-plugin-claude/tree/main/skills/lutece-patterns
Command: npx skills add https://github.com/lutece-platform/lutece-dev-plugin-claude --skill lutece-patterns-lutece-platform

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides the definitive guide to Lutece 8's architectural patterns and coding conventions, ensuring consistency and best practices in development.

Core Features & Use Cases

  • Layered Architecture: Understand the standard 5-layer structure (Entity, DAO, Home, Service, Web).
  • CDI Patterns: Learn how to effectively use Contexts and Dependency Injection for services, beans, and events.
  • Pagination: Implement efficient AJAX-driven list views with the @Pager annotation.
  • Use Case: When starting a new Lutece plugin, consult this Skill to correctly implement the data access layer, business logic, and web controllers according to Lutece standards.

Quick Start

Use the lutece-patterns skill to understand the standard 5-layer architecture for Lutece 8 development.

Frequently Asked Questions about lutece-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the standard architecture for a Lutece 8 plugin?

The standard Lutece 8 architecture follows a 5-layer design: Entity, DAO, Home, Service, and Web. This layered structure ensures proper separation of concerns and maintainability for your plugin's codebase.

How do I use Contexts and Dependency Injection in Lutece 8?

You use Contexts and Dependency Injection (CDI) in Lutece 8 to manage services, beans, and events. Following these CDI patterns ensures proper component lifecycle management and administrative bean conventions.

How do I implement paginated AJAX list views in a Lutece application?

To implement paginated AJAX list views in a Lutece application, you use the @Pager annotation. This pattern enables efficient data loading and display within your web layer controllers.

Can I use standard Java CDI patterns for Lutece 8 administrative beans?

Yes, Lutece 8 leverages standard Java CDI patterns, but enforces specific administrative bean conventions. You must adhere to these coding standards to maintain framework integration and code quality.

What's the best way to structure data access and business logic layers in Lutece?

The best way to structure data access and business logic in Lutece is using the Home and Service layers. This separates database interactions from business rules, adhering to strict Lutece 8 coding conventions.