import { ControllerComponent } from "https://deno.land/x/mandarinets@v2.3.2/mvc-framework/core/internal/components/routing/controllerContext.ts";
This class is used in the DI Container for Mandarine to store components annotated as @Controller It contains all the behavior of a controller, like its routes and the methods of the routes.
Methods
private
initializeControllerOptions(): voidprivate
initializeRouteContextOptions(routeContext: Mandarine.MandarineMVC.Routing.RoutingAnnotationContext, classHandler: any)private
initializeRoutes(): voidprivate
initializeRoutingActionContext(routeAction: Mandarine.MandarineMVC.Routing.RoutingAction)private
processParamRoutes(routeAction: Mandarine.MandarineMVC.Routing.RoutingAction)existRoutingAction(actionMethodName: string): boolean
getActionName(methodName: string): string
getActionRoute(routeAction: Mandarine.MandarineMVC.Routing.RoutingAction): string
getActions(): Map<String, Mandarine.MandarineMVC.Routing.RoutingAction>
getClassHandler(): any
getClassHandlerType(): any
getFullRoute(route: string)
getName(): string
getRoute(): string
getRoutingAction(actionMethodName: string): Mandarine.MandarineMVC.Routing.RoutingAction | undefined
initializeMiddleware(middlewareList: Array<NonComponentMiddlewareTarget | Mandarine.Types.MiddlewareComponent> | undefined): Array<NonComponentMiddlewareTarget | Mandarine.Types.MiddlewareComponent>
registerAction(routeAction: Mandarine.MandarineMVC.Routing.RoutingAction): void
setClassHandler(classHandler: any)
setRoute(route: string | undefined): void
validateRouteSignature(routeSignature: Array<string> | null)