Skip to main content
Version: 4.4

Class: ReflectMetadataProvider#

core.ReflectMetadataProvider

Hierarchy#

Constructors#

constructor#

+ new ReflectMetadataProvider(config: IConfiguration): ReflectMetadataProvider

Parameters:#

NameType
configIConfiguration

Returns: ReflectMetadataProvider

Inherited from: MetadataProvider

Defined in: packages/core/src/metadata/MetadataProvider.ts:9

Properties#

config#

Protected Readonly config: IConfiguration

Inherited from: MetadataProvider.config

Methods#

initProperties#

ProtectedinitProperties(meta: EntityMetadata<any>, fallback: (prop: EntityProperty<any>) => void | Promise<void>): Promise<void>

Parameters:#

NameType
metaEntityMetadata<any>
fallback(prop: EntityProperty<any>) => void | Promise<void>

Returns: Promise<void>

Inherited from: MetadataProvider

Defined in: packages/core/src/metadata/MetadataProvider.ts:23


initPropertyType#

ProtectedinitPropertyType(meta: EntityMetadata<any>, prop: EntityProperty<any>): void

Parameters:#

NameType
metaEntityMetadata<any>
propEntityProperty<any>

Returns: void

Defined in: packages/core/src/metadata/ReflectMetadataProvider.ts:12


loadEntityMetadata#

loadEntityMetadata(meta: EntityMetadata<any>, name: string): Promise<void>

Parameters:#

NameType
metaEntityMetadata<any>
namestring

Returns: Promise<void>

Overrides: MetadataProvider

Defined in: packages/core/src/metadata/ReflectMetadataProvider.ts:8


loadFromCache#

loadFromCache(meta: EntityMetadata<any>, cache: EntityMetadata<any>): void

Parameters:#

NameType
metaEntityMetadata<any>
cacheEntityMetadata<any>

Returns: void

Inherited from: MetadataProvider

Defined in: packages/core/src/metadata/MetadataProvider.ts:15


useCache#

useCache(): boolean

Returns: boolean

Inherited from: MetadataProvider

Defined in: packages/core/src/metadata/MetadataProvider.ts:19

Last updated on by Martin Adámek