33 |----------------------------------
44*/
55
6+ /**----------------------------------
7+ *
8+ * Set the default route path here
9+ * ----------------------------------
10+ */
11+ route . basePath ( 'example' ) ; // === '/'
12+
613/*-----------------------------------
714 | set the directories in which we
815 | can find the context files
916 |-----------------------------------
1017*/
11- ContextProvider . directory = './ contexts';
18+ ContextProvider . directory = route . baseUrl ( ' contexts') ;
1219
1320/*-----------------------------------
1421 | set the version number of the
@@ -19,17 +26,75 @@ ContextProvider.directory = './contexts';
1926*/
2027ContextProvider . version = '1.0.0' ;
2128
29+ /*-----------------------------------
30+ | Set the Mediators directory
31+ | so that we an load the mediators
32+ | from that directory
33+ |-----------------------------------
34+ */
35+ MediatorManager . directory = route . baseUrl ( 'mediators' ) ;
36+
37+ /*-----------------------------------
38+ | Set the version number of the
39+ | mediator files so that we can
40+ | always load a fresh copy of the
41+ | mediators files upon changes.
42+ |----------------------------------
43+ */
44+ MediatorManager . version = '1.0.0' ;
45+
2246/*-----------------------------------
2347 | Set the default component
2448 | directory for the loader
2549 |-----------------------------------
2650*/
27- loader . dir = "./ components" ;
51+ loader . dir = route . baseUrl ( ' components' ) ;
2852
2953/*-----------------------------------
3054 | set the version number of the
3155 | component files so that we load
3256 | a fresh file when they change
3357 |-----------------------------------
3458*/
35- loader . version = "1.0.0" ;
59+ loader . version = '1.0.0' ;
60+
61+ /*-----------------------------------
62+ | Set the default directory of the
63+ | autoload object for loading
64+ | files.
65+ |-----------------------------------
66+ */
67+
68+ autoload . dir = route . baseUrl ( 'classes' ) ;
69+
70+ /*-----------------------------------
71+ | set the version number of the
72+ | JS files so that we load
73+ | a fresh file when they change
74+ |-----------------------------------
75+ */
76+ autoload . version = '1.0.0' ;
77+
78+ /*--------------------------------
79+ | Set the logs clearing interval
80+ | for the broker to remove stale
81+ | events. (milliseconds)
82+ |--------------------------------
83+ */
84+ broker . CLEAR_LOGS_AFTER = 30000 ; // 30 secs
85+
86+ /*--------------------------------
87+ | Set how old an event must be
88+ | to be deleted from the broker's
89+ | event log during logs clearing
90+ |--------------------------------
91+ */
92+ broker . TIME_TO_GC = 10000 ; // 10 secs
93+
94+
95+ /*-------------------------------------------
96+ | Start the garbage
97+ | collector for the broker
98+ |-------------------------------------------
99+ */
100+ broker . removeStaleEvents ( ) ; // broker garbage collection started
0 commit comments