1. Domino Brix
  2. Presenter lifecycle
  3. Post construct

postConstruct()

Called once after DI completes and before any routing. Use it for one-time setup and idempotent initialization.

			@BrixPresenter
@BrixRoute("dashboard")
@BrixSlot(BrixSlots.BRIX_BODY_SLOT)
public class DashboardPresenter extends Presenter<DashboardView> {
  // No manual view binding needed
}

@UiView
public class DashboardView extends BrixView<Element, DashboardHandlers>
    implements DashboardPresenter.DashboardView {
  @Handlers DashboardHandlers handlers;
}

		

Good uses

  • Initialize in-memory state or default view values.
  • Register long-lived listeners that should outlive activations.
  • Warm caches that do not depend on routing context.

Avoid heavy network calls here—prefer onActivated() when work should align with route entry.

We are a group of passionate people who love what we do

Donate & Support Us