8#include <userver/components/component_fwd.hpp>
9#include <userver/components/raw_component_base.hpp>
11USERVER_NAMESPACE_BEGIN
19class ComponentBase :
public RawComponentBase {
21 ComponentBase(
const ComponentConfig&,
const ComponentContext&);
23 ComponentBase(ComponentBase&&) =
delete;
24 ComponentBase(
const ComponentBase&) =
delete;
29 ~ComponentBase() override =
default;
35 ComponentHealth GetComponentHealth()
const override {
return ComponentHealth::kOk; }
42 void OnLoadingCancelled() override {}
51 void OnAllComponentsLoaded() override {}
58 void OnAllComponentsAreStopping() override {}
63 static yaml_config::Schema GetStaticConfigSchema();
67 using LoggableComponentBase = ComponentBase;
71using LoggableComponentBase = ComponentBase;