from clarabot_nano_common.utility.handlers import HandlerClassRegistry

from clarabot_nano.core.state.update.gateway_access import SetGatewayAccess
from clarabot_nano.core.state.update.gateway_command import SetGatewayCommandResult
from clarabot_nano.core.state.update.gateway_status import SetGatewayStatus
from clarabot_nano.core.state.update.indexer_status import SetIndexerStatus
from clarabot_nano.core.state.update.license_validity import ServerLicenseValidity
from clarabot_nano.core.state.update.new_license import NewLicense
from clarabot_nano.core.state.update.solr_core import SetSolrCore

STATE_UPDATE_HANDLER_REGISTRY = HandlerClassRegistry(
    [
        SetGatewayAccess,
        SetGatewayCommandResult,
        SetGatewayStatus,
        SetIndexerStatus,
        ServerLicenseValidity,
        NewLicense,
        SetSolrCore,
    ]
)
