bootify zeebe client and broker
For Broker and Client two libraries are provided. One holds the pure Spring setup and the other one is a starter that activates the behavior just by adding the dependency. Using this setup, you can decide if you want to embedd the broker or client in a regular Spring application or if you want to use the spring boot style "starter-magic" to activate.
The spring setup for both client and broker consists of the following major components:
- An objectFactory. This factory is responsible for creating the instance of broker or client.
- A SmartLifecycle: creates a new instance using the objectFactory and wraps it to a spring lifecycle, keeping the instance running as in server mode
- A configuration class providing instances of factory and lifecycle
Enableannotation that activates the configuration