SessionServiceProvider class

Service provider that wires all session-related services and publishes default configuration.

The provider also exposes a lightweight plugin system allowing packages to add new session drivers at runtime.

Inheritance
Mixed-in types

Constructors

SessionServiceProvider()

Properties

configSource String
Optional identifier used when tracking config contributions.
no setterinherited
defaultConfig ConfigDefaults
Default configuration as understood by the framework.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemas Map<String, Schema>
The JSON Schemas for this configuration.
no setterinherited

Methods

boot(Container container) Future<void>
Optional boot method called after all providers are registered.
inherited
cleanup(Container container) Future<void>
Optional cleanup method called when container is disposed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onConfigReload(Container container, Config config) Future<void>
Called when the application configuration is reloaded.
override
register(Container container) → void
Register services with the container.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

availableDriverNames({bool includeBuiltIns = false}) List<String>
Returns a list of registered driver names, with optional built-ins.
driverDocumentation() List<ConfigDocEntry>
Collects documentation for every registered driver.
registerDriver(String driver, SessionDriverBuilder builder, {SessionDriverDocBuilder? documentation, bool overrideExisting = true, SessionDriverValidator? validator, List<String> requiresConfig = const []}) → void
Convenience wrapper around SessionDriverRegistry.register.
unregisterDriver(String driver) → void
Convenience wrapper around SessionDriverRegistry.unregister.

Constants

spec → const SessionConfigSpec