{"id":13514926,"url":"https://github.com/apache/causeway","last_synced_at":"2026-01-15T22:19:02.671Z","repository":{"id":5723879,"uuid":"6935442","full_name":"apache/causeway","owner":"apache","description":"Use Apache Causeway™ to rapidly develop domain-driven apps or modular monoliths in Java, on top of the Spring Boot platform. Write your business logic in entities, domain services or view models, and the framework dynamically generates a representation of that domain model as a webapp, GraphQL or RESTful API. For prototyping or production.","archived":false,"fork":false,"pushed_at":"2026-01-12T05:25:21.000Z","size":396239,"stargazers_count":883,"open_issues_count":8,"forks_count":315,"subscribers_count":60,"default_branch":"main","last_synced_at":"2026-01-13T04:10:02.467Z","etag":null,"topics":["ddd","domain-driven-design","java","naked-objects","rad","rapid-application-development","restful-objects","spring-boot","web-framework"],"latest_commit_sha":null,"homepage":"https://causeway.apache.org/","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apache.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":"CONTRIBUTING.adoc","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security/adoc/antora.yml","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-11-30T08:00:24.000Z","updated_at":"2026-01-12T05:25:17.000Z","dependencies_parsed_at":"2023-09-23T10:12:25.687Z","dependency_job_id":"b2ce5194-89ce-4293-9b2b-f9350de2898d","html_url":"https://github.com/apache/causeway","commit_stats":{"total_commits":23596,"total_committers":68,"mean_commits":347.0,"dds":0.5575097474148161,"last_synced_commit":"23623d0617d4d9dd3c804579dcfdf39cef970a90"},"previous_names":["apache/isis"],"tags_count":163,"template":false,"template_full_name":null,"purl":"pkg:github/apache/causeway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcauseway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcauseway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcauseway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcauseway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/causeway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fcauseway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28472626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:13:38.078Z","status":"ssl_error","status_checked_at":"2026-01-15T22:12:11.737Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddd","domain-driven-design","java","naked-objects","rad","rapid-application-development","restful-objects","spring-boot","web-framework"],"created_at":"2024-08-01T05:01:03.978Z","updated_at":"2026-01-15T22:19:02.665Z","avatar_url":"https://github.com/apache.png","language":"Java","readme":"= Apache Causeway\n:toc:\n:toc-title: pass:[\u003ch3\u003eContents\u003c/h3\u003e]\n:toc-placement!:\n\nimage:https://maven-badges.herokuapp.com/maven-central/org.apache.causeway.core/causeway-applib/badge.svg[]\nimage:https://github.com/apache/causeway/workflows/Build%20and%20Test%20(w/%20Maven)/badge.svg[]\nimage:https://sonarcloud.io/api/project_badges/measure?project=apache_causeway\u0026metric=alert_status[link=\"https://sonarcloud.io/dashboard?id=apache_causeway\"]\nimage:https://github.com/apache-causeway-committers/causeway-nightly/actions/workflows/apache-causeway-ci-nightly.yml/badge.svg[link=\"https://github.com/apache-causeway-committers/causeway-nightly/actions/workflows/apache-causeway-ci-nightly.yml\"]\n\n_https://causeway.apache.org[Apache Causeway] software is a framework for rapidly developing domain-driven apps in Java. Write your business logic in entities, domain services and repositories, and the framework dynamically generates a representation of that domain model as a webapp or a RESTful API._\n\nStart learning about Apache Causeway using the https://github.com/apache/causeway-app-helloworld[\"Hello World\"] starter app.\n//TODO update: Explore features with our daily built demo docker image https://github.com/apache/causeway/blob/master/examples/demo/domain/src/main/adoc/modules/demo/pages/about.adoc[\"DemoApp\"].\nBuild your own apps using our https://github.com/apache/causeway-app-simpleapp[\"SimpleApp\"] starter app.\n\nFor help and support, join our https://causeway.apache.org/docs/2.0.0-M9/support/slack-channel.html[Slack channel] or https://causeway.apache.org/docs/2.0.0-M7/support/mailing-list.html[mailing list].\n\ntoc::[]\n\n\n== Core Features\n\nApache Causeway automatically generates the UI from the domain classes.\n\n=== Sign-in\n\nApache Causeway integrates with link:https://spring.io/projects/spring-security[Spring Security] and link:https://www.keycloak.org/[Keycloak] for authentication concerns, typically in combination with OAuth2.\nThese are usually combined with the __SecMan__ module, which provides a set of domain entities that model an authenticaiton model: users, roles and permissions against features derived from the Apache Causeway metamodel.\nThe SecMan user is mapped to the authentical principle provided by Spring or Keycloak.\nAlternatively, SecMan can perform its own local authentication.\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/010-login.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/010-login.png\"]\n\n\n=== Install Fixtures\n\nApache Causeway has lots of features to help you prototype and then fully test your application.\nOne such are fixture scripts, which allow pre-canned data to be installed in the running application.\nThis is great to act as the starting point for identifying new stories; later on when the feature is being implemented, the same fixture script can be re-used within that feature's integration tests.\n(More on tests later).\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/020-install-fixtures.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/020-install-fixtures.png\"]\n\n=== Dashboard and View Models\n\nMost of the time the end-user interacts with representations of persistent domain entities, but Causeway also supports view models which can aggregate data from multiple sources.\nThe todoapp example uses a \"dashboard\" view model to list todo items not yet done vs those completed.\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/030-dashboard-view-model.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/030-dashboard-view-model.png\"]\n\nIn general we recommend to initially focus only on domain entities; this will help drive out a good domain model.\nLater on view models can be introduced in support of specific use cases.\n\n=== Domain Entity\n\nThe screenshot below is of the todoapp's `ToDoItem` domain entity.\nLike all web pages, this UI is generated at runtime, directly from the domain object itself.\nThere are no controllers or HTML to write.\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/040-domain-entity.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/\"]\n\nIn addition to the domain entity, Apache Causeway allows layout metadata hints to be provided, for example to specify the grouping of properties, the positioning of those groups into columns, the association of actions (the buttons) with properties or collections, the icons on the buttons, and so on.\nThis metadata can be specified either as annotations or in JSON form; the benefit of the latter is that it can be updated (and the UI redrawn) without restarting the app.\n\nAny production-ready app will require this metadata but (like the view models discussed above) this metadata can be added gradually on top of the core domain model.\n\n=== Edit properties\n\nBy default properties on domain entities are editable, meaning they can be changed directly.\nIn the todoapp example, the `ToDoItem`'s description is one such editable property:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/050-edit-property.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/050-edit-property.png\"]\n\nNote that some of the properties are read-only even in edit mode; individual properties can be made non-editable.\nIt is also possible to make all properties disabled and thus enforce changes only through actions (below).\n\n=== Actions\n\nThe other way to modify an entity is to an invoke an action.\nIn the screenshot below the `ToDoItem`'s category and subcategory can be updated together using an action:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/060-invoke-action.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/060-invoke-action.png\"]\n\nThere are no limitations on what an action can do; it might just update a single object, it could update multiple objects.\nOr, it might not update any objects at all, but could instead perform some other activity, such as sending out email or printing a document.\n\nIn general though, all actions are associated with some object, and are (at least initially) also implemented by that object: good old-fashioned encapsulation.\nWe sometimes use the term \"behaviourally complete\" for such domain objects.\n\n=== Mixins\n\nAs an alternative to placing actions (business logic) on a domain object, it can instead be placed inside a mixin object.\nWhen an object is rendered by Apache Causeway, the mixin \"contributes\" its behaviour to the domain object (similar to aspect-oriented traits).\n\nIn the screenshot below the highlighted \"export as xml\" action, the \"relative priority\" property (and \"previous\" and \"next\" actions) the \"similar to\" collection and the two \"as DTO\" actions are all contributed by mixins:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/065-contributions.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/065-contributions.png\"]\n\nThe code snippet below shows how this works for the \"as DTO v1.0\" action:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/067-contributed-action.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/067-contributed-action.png\"]\n\n\n\n\n== Extensible Views\n\nThe Apache Causeway viewer is implemented using http://wicket.apache.org[Apache Wicket], and has been architected to be extensible.\nFor example, when a collection of objects is rendered, this is just one several views, as shown in the selector drop-down:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/070-pluggable-views.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/070-pluggable-views.png\"]\n\n// The __gmap3__ extension will render any domain entity (such as `ToDoItem`) that implements its `Locatable` interface:\n//\n// image::https://raw.githubusercontent.com/apache/causeway/master/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/080-gmap3-view.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/080-gmap3-view.png\"]\n\nThus, the __fullcalendar2__ extension will render any domain entity (such as `ToDoItem`) that implements its `Calendarable` interface:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/090-fullcalendar2-view.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/090-fullcalendar2-view.png\"]\n\n\nYet another \"view\" (though this one is rather simpler) is the __exceldownload__ extension.\nThis provides a download button to the table as a spreadsheet:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/100-excel-view-and-docx.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/100-excel-view-and-docx.png\"]\n\nThe screenshot above also shows an \"export to Word\" action.\nThis is _not_ a view but instead is a (contributed) action that uses the (non-ASF) link:https://platform.incode.org/modules/lib/docx/lib-docx.html[docx library] module to perform a \"mail-merge\":\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/110-docx.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/110-docx.png\"]\n\n\n\n\n== Security, Auditing and other Services\n\nAs well as providing extensions to the UI, the framework has a rich set of extensions to support various cross-cutting concerns.\n\nUnder the activity menu are four sets of services which provide support for _user session logging/auditing_, _command profiling_, _(object change) auditing_ (shown) and (inter-system) _event publishing_:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/120-auditing.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/120-auditing.png\"]\n\nIn the security menu is access to the rich set of functionality provided by the SecMan extension:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/130-security.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/130-security.png\"]\n\nIn the prototyping menu is the ability to download a GNU gettext `.po` file for translation.\nThis file can then be translated into multiple languages so that your app can support different locales. Note that this feature is part of Apache Causeway core:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/140-i18n.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/140-i18n.png\"]\n\nThe framework also provides an extension module for managing _application and user settings_.\nMost apps (the todoapp example included) won't expose these services directly, but will usually wrap them in their own app-specific settings service that trivially delegates to the settings module's services:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/150-appsettings.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/150-appsettings.png\"]\n\n=== Multi-tenancy support\n\nOne significant feature of the __SecMan__ extension the ability to associate users and objects with a \"tenancy\" (string) token.\nAn SPI is provided as the mechanism to interpret this token, so this is highly configurable.\n\nThe todoapp uses this feature so that different users' list of todo items are kept separate from one another.\nA user with administrator is able to switch their own \"tenancy\" to the tenancy of some other user, in order to access the objects in that tenancy:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/160-switch-tenancy.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/160-switch-tenancy.png\"]\n\n\n=== Me\n\nMost of the security module's domain services are on the \"security\" menu, which would normally be accessible only to administrators.\nKept separate is the \"me\" action:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/170-me.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/170-me.png\"]\n\nAssuming they have been granted permissions, this allows a user to access an entity representing their own user account:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/180-app-user-entity.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/180-app-user-entity.png\"]\n\nIf not all of these properties are required, then they can be hidden either using security or though Causeway' internal event bus (described below).\nConversely, additional properties can be \"grafted onto\" the user using the contributed properties/collections discussed previously.\n\n=== Themes\n\nApache Causeway' Wicket viewer uses link:http://getbootstrap.com[Twitter Bootstrap], which means that it can be themed.\nIf more than one theme has been configured for the app, then the viewer allows the end-user to switch their theme:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/190-switch-theme.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/190-switch-theme.png\"]\n\n\n\n== REST API\n\nIn addition to Causeway' Wicket viewer, it also provides a fully fledged REST API, as an implementation of the http://restfulobjects.org[Restful Objects] specification.\nThe screenshot below shows accessing this REST API using a Chrome plugin:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/200-rest-api.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/200-rest-api.png\"]\n\nLike the Wicket viewer, the REST API is generated automatically from the domain objects (entities and view models).\n\n\n\n== Integration Testing Support\n\nEarlier on we noted that Apache Causeway allows fixtures to be installed through the UI.\nThese same fixture scripts can be reused within integration tests.\nFor example, the code snippet below shows how the `FixtureScripts` service injected into an integration test can then be used to set up data:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/210-fixture-scripts.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/210-fixture-scripts.png\"]\n\nThe tests themselves are run in junit.\nWhile these are integration tests (so talking to a real database), they are no more complex than a regular unit test:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/220-testing-happy-case.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/220-testing-happy-case.png\"]\n\n\nTo simulate the business rules enforced by Apache Causeway, the domain object can be \"wrapped\" in a proxy.\nFor example, if using the Wicket viewer then Apache Causeway will enforce the rule (implemented in the `ToDoItem` class itself) that a completed item cannot have the \"completed\" action invoked upon it.\nThe wrapper simulates this by throwing an appropriate exception:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/230-testing-wrapper-factory.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/230-testing-wrapper-factory.png\"]\n\n\n\n\n== Internal Event Bus\n\nContributions, discussed earlier, are an important tool in ensuring that the packages within your Apache Causeway application are decoupled; by extracting out actions the order of dependency between packages can effectively be reversed.\n\nAnother important tool to ensure your codebase remains maintainable is Causeway' internal event bus.\nIt is probably best explained by example; the code below says that the \"complete\" action should emit a `ToDoItem.Completed` event:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/240-domain-events.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/240-domain-events.png\"]\n\nDomain service (application-scoped, stateless) can then subscribe to this event:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/250-domain-event-subscriber.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/250-domain-event-subscriber.png\"]\n\nAnd this test verifies that completing an action causes the subscriber to be called:\n\nimage::https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/260-domain-event-test.png[link=\"https://raw.githubusercontent.com/apache/causeway/main/antora/components/docs/modules/ROOT/images/what-is-apache-causeway/causeway-in-pictures/260-domain-event-test.png\"]\n\nIn fact, the domain event is fired not once, but (up to) 5 times.\nIt is called 3 times prior to execution, to check that the action is visible, enabled and that arguments are valid.\nIt is then additionally called prior to execution, and also called after execution.\nWhat this means is that a subscriber can in either veto access to an action of some publishing object, and/or it can perform cascading updates if the action is allowed to proceed.\n\nMoreover, domain events are fired for all properties and collections, not just actions.\nThus, subscribers can therefore switch on or switch off different parts of an application.\nIndeed, the example todoapp demonstrates this.\n\n\n\n\n== Learning More\n\nThe Apache Causeway https://causeway.apache.org[website] has lots of useful information and is being continually updated.\n\nOr, you can just start coding using the https://github.com/apache/causeway-app-simpleapp[SimpleApp] starter app.\n\nAnd if you need help or support, join our https://cwiki.apache.org/confluence/display/CAUSEWAY/Signing+up+to+Slack[ASF Slack channel] or our https://causeway.apache.org/support.html[mailing list].\n\n\n","funding_links":[],"categories":["Java","开发框架"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fcauseway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fcauseway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fcauseway/lists"}