Used internally, the constructor creates a component mapping. The constructor creates a ComponentTypeProvider as the default mapping, which will be replaced by more specific mappings if other methods are called.
The EntityState that the mapping will belong to
The component type for the mapping
Maps through to the add method of the EntityState that this mapping belongs to so that a fluent interface can be used when configuring entity states.
The type of component to add a mapping to the state for
The new ComponentMapping for that type
Creates a mapping for the component type to a specific component instance. A ComponentInstanceProvider is used for the mapping.
The component instance to use for the mapping
This ComponentMapping, so more modifications can be applied
Creates a mapping for the component type to a method call. A DynamicComponentProvider is used for the mapping.
The method to return the component instance
This ComponentMapping, so more modifications can be applied
Creates a mapping for the component type to any ComponentProvider.
The component provider to use.
This ComponentMapping, so more modifications can be applied.
Creates a mapping for the component type to a single instance of the provided type. The instance is not created until it is first requested. The type should be the same as or extend the type for this mapping. A ComponentSingletonProvider is used for the mapping.
of the single instance to be created. If omitted, the type of the mapping is used.
This ComponentMapping, so more modifications can be applied
Creates a mapping for the component type to new instances of the provided type. The type should be the same as or extend the type for this mapping. A ComponentTypeProvider is used for the mapping.
The type of components to be created by this mapping
This ComponentMapping, so more modifications can be applied
Generated using TypeDoc
Used by the EntityState class to create the mappings of components to providers via a fluent interface.