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.

			@Override
protected void postConstruct() {
  LOGGER.info("Dashboard ready");
  view.setTitle("Dashboard");
}

		

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