PersonaWithFinder

Intended for persona enums to implement, to obtain an instance of the corresponding top-level entity representing the persona.

API

PersonaWithFinder.java
interface PersonaWithFinder<T> {
  T findUsing(ServiceRegistry serviceRegistry)     (1)
}
1 findUsing(ServiceRegistry)

Looks up the top-level domain entity representing the persona, with the provided ServiceRegistry parameter providing access to all domain services available.

Members

findUsing(ServiceRegistry)

Looks up the top-level domain entity representing the persona, with the provided ServiceRegistry parameter providing access to all domain services available.

Typically the implementation looks up the appropriate domain-specific repository domain service (or could just use the generic org.apache.causeway.applib.services.repository.RepositoryService in order to find by key.