close

public void close()

Closes the BoundedContext performing all necessary clean-ups.

This method performs the following:

  1. Closes associated StorageFactory.
  2. Closes CommandBus.
  3. Closes EventBus.
  4. Closes IntegrationBroker.
  5. Closes EventStore.
  6. Closes Stand.
  7. Closes ImportBus.
  8. Closes TracerFactory if it is present.
  9. Closes all registered repositories.

Throws

caused by closing one of the components