1 | import { ILogger } from "../iLogger";
|
2 | import { Component } from "../widgets/component";
|
3 | export interface ContextParams {
|
4 | providedBeanInstances: any;
|
5 | beanClasses: any[];
|
6 | debug: boolean;
|
7 | }
|
8 | export interface ComponentMeta {
|
9 | componentClass: new () => Object;
|
10 | componentName: string;
|
11 | }
|
12 | export interface ControllerMeta {
|
13 | controllerClass: new () => Object;
|
14 | controllerName: string;
|
15 | }
|
16 | export declare class Context {
|
17 | private beanWrappers;
|
18 | private contextParams;
|
19 | private logger;
|
20 | private destroyed;
|
21 | constructor(params: ContextParams, logger: ILogger);
|
22 | private getBeanInstances;
|
23 | createBean<T extends any>(bean: T, afterPreCreateCallback?: (comp: Component) => void): T;
|
24 | private wireBeans;
|
25 | private createBeans;
|
26 | private createBeanWrapper;
|
27 | private autoWireBeans;
|
28 | private methodWireBeans;
|
29 | private forEachMetaDataInHierarchy;
|
30 | private getBeanName;
|
31 | private getBeansForParameters;
|
32 | private lookupBeanInstance;
|
33 | private callLifeCycleMethods;
|
34 | private callLifeCycleMethodsOnBean;
|
35 | getBean(name: string): any;
|
36 | destroy(): void;
|
37 | destroyBean<T>(bean: T): undefined;
|
38 | destroyBeans<T>(beans: T[]): T[];
|
39 | }
|
40 | export declare function PreConstruct(target: Object, methodName: string, descriptor: TypedPropertyDescriptor<any>): void;
|
41 | export declare function PostConstruct(target: Object, methodName: string, descriptor: TypedPropertyDescriptor<any>): void;
|
42 | export declare function PreDestroy(target: Object, methodName: string, descriptor: TypedPropertyDescriptor<any>): void;
|
43 | export declare function Bean(beanName: string): Function;
|
44 | export declare function Autowired(name?: string): Function;
|
45 | export declare function Optional(name?: string): Function;
|
46 | export declare function Qualifier(name: string): Function;
|