RepositoryRegistry class

A central registry for managing and looking up repository instances.

Constructors

RepositoryRegistry()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clear() → void
Clears all registered repositories.
get<R>() → R
Gets a repository of type R.
getForEntity<E extends Object>() BaseRepository<E, dynamic>
Gets the repository that manages entities of type E.
register<R>(dynamic repository) → void
Registers a repository of type R.
registerForEntity<E extends Object>(BaseRepository<E, dynamic> repository) → void
Registers a repository as the default for entity type E.