The most abstract class of store layers, provides basic utilities and some interfaces.
To control whether this layer is valid.
The original fetch function of the store.
Do the actual unwrapping to the store.
Parameter | Type | Description |
---|---|---|
nextLayer | undefined |
Do the actual wrapping (or 'hacking' if you like) to the store.
Parameter | Type | Description |
---|---|---|
store | undefined | The store to be unwrapped. |
funcName | undefined | |
layerFuncName | undefined | |
nextLayer | undefined |
The get/set function of the enabled status of this layer
Parameter | Type | Description |
---|---|---|
toEnable | Boolean |
Optional If given, is a setter, otherwise, it's getter. |
Parameter | Type | Description |
---|---|---|
store | undefined |
Get the name of this store layer. The default name retrieved from class name, which should have a pattern of "{name}Layer". If this pattern does not exist, the whole class name will be this layer's name. It's better to override this method if your class name is too complicated.
The name of this layer.
Parameter | Type | Description |
---|---|---|
store | undefined |