BaseServerRegistry<TConfig extends BaseServerConfig> class abstract

The server-side injection registry.

Inheritance

Constructors

BaseServerRegistry()

Properties

config → TConfig
Gets the TConfig used by the registry and its components.
no setterinherited
handler BaseAppApiHandler<BaseServerConfig>
Gets the BaseAppApiHandler for handling requests.
no setter
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
Gets the http.Client for API requests.
no setter
injector → Injector
Gets the Injector behind this instance. This is useful for injecting mocks for testing
no setterinherited
runtime Runtime
Gets the AWS Lambda Runtime.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventEnv(AwsApiGatewayEvent event) String
Augments the current environment with X-Env prefixed variables from the event headers, and returns a token that can be used to remove them later.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventEnv(String token) Map<String, String>?
Removes previous applied environment augments based on the token and returns the Map of augments that were applied.
reset() → void
Resets the Registry state, allowing it to be reconfigured.
inherited
setup(TConfig config) → void
Sets up the registry with access to a config.
override
toString() String
A string representation of this object.
inherited
useConfig(TConfig config) → void
Sets the available config for factories requiring configuration.
inherited
withConfig<T>(ConfigBuilder<T, TConfig> builder, {bool singleton = true}) → Factory<T>
Registers a singleton builder for an object that requires configuration values
inherited

Operators

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