{"repo":"cloudogu/command-bus","free":true,"listed":false,"github":"https://github.com/cloudogu/command-bus","clone":"git clone https://github.com/cloudogu/command-bus.git","description":"Java implementation of the Command-Bus pattern for Spring and CDI","language":"Java","stars":50,"topics":["cdi","command-bus","java","spring","prometheus","logging"],"license":"MIT","category":"analytics","readme_excerpt":"command-bus CDI/Spring enabled Java Command-Bus Table of contents - Concepts - Usage - Dependency for CDI - Dependency for Spring - API - Internals - Command Bus Decorators - Prometheus metric decorators - PrometheusMetricsCountingCommandBus - PrometheusMetricsTimingCommandBus - Micrometer metric decorators - MicrometerCountingCommandBus - MicrometerTimingCommandBus - Validating command bus - Return values - Examples - Spring Concepts Command - Marker Interface CommandHandler - One Implementation per Command . Provides handle(CommandImplementation) Method. CommandBus - Finds and calls the CommandHandler for each Command . CommandBus can be decorated, in order to implement cross-cutting concerns, such as logging, transaction handling, validation, autorization, metrics etc. Usage Add the latest stable version of command-bus to the dependency management tool of your choice. You can also get snapshot versions from our snapshot repository (for the most recent commit on develop branch). To do so, add the following repo to your pom.xml or settings.xml : There are different versions of command-bus for either CDI or spring. Dependency for CDI Dependency for Spring API Bootstrapping CDI: Having the command-bus-cdi dependency on the classpath triggers the CDI extension Spring: All CommandHandlers must be within the application context (e.g. @Component in spring boot) Implement your Command s and the logic in appropriate CommandHandler s. You can now just inject the CommandBus and pass y","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudogu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudogu/command-bus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}