Project Docs Github
Log in
ittf site docs concepts t wizzimodelinstances factorymodule.html.ittf Edit
  • /ittf/site/docs/concepts/t/wizzimodelinstances/factorymodule.html.ittf
  • /ittf/site/docs/concepts/t/section.html.ittf

/ittf/site/docs/concepts/t/wizzimodelinstances/factorymodule.html.ittf (primary)

edit
                                            
1 $group
2 $
3 var sect = {
4 title: 'Wizzi Model factory'
5 };
6 section( §)
7 p The javascript module {schema-name}-factory.g.js exports the method
8 \b 'createLoadModel', that is an HOF that returns the 'loadModel' function.
9 \b It must be called passing the 'wizzi' object.
10 ittf-panel
11 title The {schema-name}-factory.g.js API
12 schema js
13 ittf
14 {
15 func createLoadModel
16 # HOF : returns the loadModel function for the given factory
17 { wizziObject
18 func loadMTree
19 api-ref wizzi-mtree.loader.loadMTree
20 # This function is prepared by the wizzi.WizziFactory instance class
21 # and has repository access functions and load options in its closure.
22 { file
23 api-ref wizzi.util.file
24 { errors
25 api-ref wizzi.errors
26 ...
27 return
28 func loadModel
29 # This returned function require a complex 'loadContext'
30 # parameter with a lot of interfaces passed.
31 # It will be called by the wizzi.WizziFactory instance and
32 # not directly from client code.
33 string ittfDocumentUri
34 # The path to the primary ITTF Document from which
35 # the mTree will be loaded
36 { loadContext
37 { __productionManager
38 api-ref wizzi.production.productionManager
39 { productionContext
40 api-ref wizzi.production.productionContext
41 { aclstat
42 api-ref wizzi.production.aclstat
43 { __ittfDocumentStore
44 api-ref wizzi-repo.ittfDocumentStore
45 { mTreeBuildUpContext
46 optional
47 | api-ref wizzi-plugin.wizziModel
48 | POJO
49 callback

/ittf/site/docs/concepts/t/section.html.ittf

edit
                                            
1 $group
2 $params §
3 article
4 . doc-title
5 id ${sect.id}
6 + ${sect.title}
7 . doc-summary
8 $hook
Save
Save & Refresh
Cancel