AbstractModule
The base class of every module.
import { AbstractModule } from "@evolve-framework/core";new AbstractModule()| Method | Description |
|---|---|
getGraphQLConfig(): GraphQLConfig | undefined | The type definitions and resolvers this module adds to the GraphQL schema, or undefined when it serves no GraphQL. |
getGraphQLSchema(): string | undefined | The type definitions of getGraphQLConfig() printed as SDL, which codegen reads without running the service. |
getHttpConfig(): HttpConfig | undefined | The routes and route-scoped Fastify plugins this module registers on the HTTP server, or undefined when it has none. |
getInternalEventConfig(): InternalEventConfig | undefined | The internal events this module handles, if any. |
init(): void | Promise<void> | One-shot initialization hook for side-effecty setup that must not run at construction time — typically building SDK clients or registering module-scoped singletons. |
close(): void | Promise<void> | Optional cleanup hook called by Application.stop() after the HTTP server has closed. |

