ComponentFacadeRegistry class
Registry for component facades. Manages facade factories and creates facades for components.
Constructors
- ComponentFacadeRegistry()
-
Create a new registry instance (for testing or multiple worlds)
factory
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
-
createFacade<
T> (ComponentId componentId, int index, DataColumn column) → T - Create facade for component.
-
createFacadeForQuery(
ComponentId componentId, int index, Type componentClass) → dynamic - Create facade with automatic type resolution for queries.
-
createFacadeWithoutInit<
T> (ComponentId componentId, int index) → T - Create facade without initializing the column.
-
getExtensionType(
ComponentId componentId) → Type? - Get extension type for a component ID. Returns null if no factory is registered for the component.
-
getFactory(
ComponentId componentId) → ComponentFacadeFactory? - Get factory for component ID (for query iterator optimization). Returns null if no factory is registered.
-
hasFactory(
ComponentId componentId) → bool - Check if a factory is registered for the given component ID.
-
initializeColumn(
ComponentId componentId, DataColumn column) → ComponentFacadeFactory - Initialize column reference for a component factory.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerFactory<
TExtension> (ComponentId componentId, ComponentFacadeFactory< TExtension> factory) → void - Register facade factory for component type.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregisterFactory(
ComponentId componentId) → void - Unregister facade factory for component type.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ComponentFacadeRegistry
-
Singleton instance (for convenience, can also be passed explicitly)
final