ClassRegistry Class

Maintains the mapping between the name of a BIS ECClass (in "schema:class" format) and the JavaScript Entity class that implements it. Applications or modules that supply their own Entity subclasses should use ClassRegistry.registerModule or ClassRegistry.register at startup to establish their mappings.

Methods

Name Description
constructor(): ClassRegistry    
findRegisteredClass(classFullName: string): undefined | Static Find a registered class by classFullName.  
getClass(classFullName: string, iModel: IModelDb): undefined Static Get the Entity class for the specified Entity className.  
register(entityClass: undefined, schema: undefined): void Static Register a single entityClass defined in the specified schema.  
registerModule(moduleObj: any, schema: undefined): void Static Register all of the classes found in the given module that derive from Entity.  

Defined in

Last Updated: 25 April, 2024