Zing/App.pm untested

filter: Statementstmt 0.0% 0 / 260 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod n/a totaltotal 0.0% 0 / 275 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Zing::App;
2  
3 use 5.014;
4  
5 use strict;
6 use warnings;
7  
8 use registry 'Zing::Types';
9 use routines;
10  
11 use Data::Object::Class;
12 use Data::Object::ClassHas;
13 use Data::Object::Space;
14  
15 our $VERSION = '0.26'; # VERSION
16  
17 # ATTRIBUTES
18  
19 has env => (
20 is => 'ro',
21 isa => 'Env',
22 new => 1,
23 );
24  
25 fun new_env($self) {
26 require Zing::Env; Zing::Env->new(app => $self);
27 }
28  
29 has host => (
30 is => 'ro',
31 isa => 'Str',
32 init_arg => undef,
33 new => 1,
34 );
35  
36 fun new_host($self) {
37 $self->env->host
38 }
39  
40 has name => (
41 is => 'ro',
42 isa => 'Str',
43 new => 1,
44 );
45  
46 fun new_name($self) {
47 'zing'
48 }
49  
50 has pid => (
51 is => 'ro',
52 isa => 'Int',
53 init_arg => undef,
54 new => 1,
55 );
56  
57 fun new_pid($self) {
58 $$
59 }
60  
61 # METHODS
62  
63 method for(Any %args) {
64 my %data = %{$self->env}; delete $data{app};
65 require Zing::Env; Zing::Env->new(%data, %args)->app;
66 }
67  
68 method cartridge(Any @args) {
69 return $self->reify($self->cartridge_specification(@args));
70 }
71  
72 method cartridge_namespace() {
73 return [$self->name, 'cartridge'];
74 }
75  
76 method cartridge_specification(Any @args) {
77 return [$self->cartridge_namespace, [@args]];
78 }
79  
80 method channel(Any @args) {
81 return $self->reify($self->channel_specification(@args));
82 }
83  
84 method channel_namespace() {
85 return [$self->name, 'channel'];
86 }
87  
88 method channel_specification(Any @args) {
89 return [$self->channel_namespace, [@args]];
90 }
91  
92 method cursor(Any @args) {
93 return $self->reify($self->cursor_specification(@args));
94 }
95  
96 method cursor_namespace() {
97 return [$self->name, 'cursor'];
98 }
99  
100 method cursor_specification(Any @args) {
101 return [$self->cursor_namespace, [@args]];
102 }
103  
104 method daemon(Any @args) {
105 return $self->reify($self->daemon_specification(@args));
106 }
107  
108 method daemon_namespace() {
109 return [$self->name, 'daemon'];
110 }
111  
112 method daemon_specification(Any @args) {
113 return [$self->daemon_namespace, [@args]];
114 }
115  
116 method data(Any @args) {
117 return $self->reify($self->data_specification(@args));
118 }
119  
120 method data_namespace() {
121 return [$self->name, 'data'];
122 }
123  
124 method data_specification(Any @args) {
125 return [$self->data_namespace, [@args]];
126 }
127  
128 method domain(Any @args) {
129 return $self->reify($self->domain_specification(@args));
130 }
131  
132 method domain_namespace() {
133 return [$self->name, 'domain'];
134 }
135  
136 method domain_specification(Any @args) {
137 return [$self->domain_namespace, [@args]];
138 }
139  
140 method encoder(Any @args) {
141 return $self->reify($self->encoder_specification(@args));
142 }
143  
144 method encoder_namespace() {
145 return [$self->env->encoder];
146 }
147  
148 method encoder_specification(Any @args) {
149 return [$self->encoder_namespace, [@args]];
150 }
151  
152 method fork(Any @args) {
153 return $self->reify($self->fork_specification(@args));
154 }
155  
156 method fork_namespace() {
157 return [$self->name, 'fork'];
158 }
159  
160 method fork_specification(Any @args) {
161 return [$self->fork_namespace, [@args]];
162 }
163  
164 method id(Any @args) {
165 return $self->reify($self->id_specification(@args));
166 }
167  
168 method id_namespace() {
169 return [$self->name, 'i-d'];
170 }
171  
172 method id_specification(Any @args) {
173 return [$self->id_namespace, [@args]];
174 }
175  
176 method journal(Any @args) {
177 return $self->reify($self->journal_specification(@args));
178 }
179  
180 method journal_namespace() {
181 return [$self->name, 'journal'];
182 }
183  
184 method journal_specification(Any @args) {
185 return [$self->journal_namespace, [@args]];
186 }
187  
188 method kernel(Any @args) {
189 return $self->reify($self->kernel_specification(@args));
190 }
191  
192 method kernel_namespace() {
193 return [$self->name, 'kernel'];
194 }
195  
196 method kernel_specification(Any @args) {
197 return [$self->kernel_namespace, [@args]];
198 }
199  
200 method keyval(Any @args) {
201 return $self->reify($self->keyval_specification(@args));
202 }
203  
204 method keyval_namespace() {
205 return [$self->name, 'key-val'];
206 }
207  
208 method keyval_specification(Any @args) {
209 return [$self->keyval_namespace, [@args]];
210 }
211  
212 method launcher(Any @args) {
213 return $self->reify($self->launcher_specification(@args));
214 }
215  
216 method launcher_namespace() {
217 return [$self->name, 'launcher'];
218 }
219  
220 method launcher_specification(Any @args) {
221 return [$self->launcher_namespace, [@args]];
222 }
223  
224 method logger(Any @args) {
225 require FlightRecorder; FlightRecorder->new(level => 'info', @args);
226 }
227  
228 method lookup(Any @args) {
229 return $self->reify($self->lookup_specification(@args));
230 }
231  
232 method lookup_namespace() {
233 return [$self->name, 'lookup'];
234 }
235  
236 method lookup_specification(Any @args) {
237 return [$self->lookup_namespace, [@args]];
238 }
239  
240 method mailbox(Any @args) {
241 return $self->reify($self->mailbox_specification(@args));
242 }
243  
244 method mailbox_namespace() {
245 return [$self->name, 'mailbox'];
246 }
247  
248 method mailbox_specification(Any @args) {
249 return [$self->mailbox_namespace, [@args]];
250 }
251  
252 method meta(Any @args) {
253 return $self->reify($self->meta_specification(@args));
254 }
255  
256 method meta_namespace() {
257 return [$self->name, 'meta'];
258 }
259  
260 method meta_specification(Any @args) {
261 return [$self->meta_namespace, [@args]];
262 }
263  
264 method process(Any @args) {
265 return $self->reify($self->process_specification(@args));
266 }
267  
268 method process_namespace() {
269 return [$self->name, 'process'];
270 }
271  
272 method process_specification(Any @args) {
273 return [$self->process_namespace, [@args]];
274 }
275  
276 method pubsub(Any @args) {
277 return $self->reify($self->pubsub_specification(@args));
278 }
279  
280 method pubsub_namespace() {
281 return [$self->name, 'pub-sub'];
282 }
283  
284 method pubsub_specification(Any @args) {
285 return [$self->pubsub_namespace, [@args]];
286 }
287  
288 method queue(Any @args) {
289 return $self->reify($self->queue_specification(@args));
290 }
291  
292 method queue_namespace() {
293 return [$self->name, 'queue'];
294 }
295  
296 method queue_specification(Any @args) {
297 return [$self->queue_namespace, [@args]];
298 }
299  
300 method reify(Tuple[ArrayRef, ArrayRef] $spec) {
301 return $self->space(@{$spec->[0]})->build(@{$spec->[1]}, env => $self->env);
302 }
303  
304 method repo(Any @args) {
305 return $self->reify($self->repo_specification(@args));
306 }
307  
308 method repo_namespace() {
309 return [$self->name, 'repo'];
310 }
311  
312 method repo_specification(Any @args) {
313 return [$self->repo_namespace, [@args]];
314 }
315  
316 method ring(Any @args) {
317 return $self->reify($self->ring_specification(@args));
318 }
319  
320 method ring_namespace() {
321 return [$self->name, 'ring'];
322 }
323  
324 method ring_specification(Any @args) {
325 return [$self->ring_namespace, [@args]];
326 }
327  
328 method ringer(Any @args) {
329 return $self->reify($self->ringer_specification(@args));
330 }
331  
332 method ringer_namespace() {
333 return [$self->name, 'ringer'];
334 }
335  
336 method ringer_specification(Any @args) {
337 return [$self->ringer_namespace, [@args]];
338 }
339  
340 method savepoint(Any @args) {
341 return $self->reify($self->savepoint_specification(@args));
342 }
343  
344 method savepoint_namespace() {
345 return [$self->name, 'savepoint'];
346 }
347  
348 method savepoint_specification(Any @args) {
349 return [$self->savepoint_namespace, [@args]];
350 }
351  
352 method scheduler(Any @args) {
353 return $self->reify($self->scheduler_specification(@args));
354 }
355  
356 method scheduler_namespace() {
357 return [$self->name, 'scheduler'];
358 }
359  
360 method scheduler_specification(Any @args) {
361 return [$self->scheduler_namespace, [@args]];
362 }
363  
364 method search(Any @args) {
365 return $self->reify($self->search_specification(@args));
366 }
367  
368 method search_namespace() {
369 return [$self->name, 'search'];
370 }
371  
372 method search_specification(Any @args) {
373 return [$self->search_namespace, [@args]];
374 }
375  
376 method simple(Any @args) {
377 return $self->reify($self->simple_specification(@args));
378 }
379  
380 method simple_namespace() {
381 return [$self->name, 'simple'];
382 }
383  
384 method simple_specification(Any @args) {
385 return [$self->simple_namespace, [@args]];
386 }
387  
388 method single(Any @args) {
389 return $self->reify($self->single_specification(@args));
390 }
391  
392 method single_namespace() {
393 return [$self->name, 'single'];
394 }
395  
396 method single_specification(Any @args) {
397 return [$self->single_namespace, [@args]];
398 }
399  
400 method space(Str @args) {
401 return Data::Object::Space->new(join '/', (@args ? @args : $self->name));
402 }
403  
404 method spawner(Any @args) {
405 return $self->reify($self->spawner_specification(@args));
406 }
407  
408 method spawner_namespace() {
409 return [$self->name, 'spawner'];
410 }
411  
412 method spawner_specification(Any @args) {
413 return [$self->spawner_namespace, [@args]];
414 }
415  
416 method store(Any @args) {
417 return $self->reify($self->store_specification(@args));
418 }
419  
420 method store_namespace() {
421 return [$self->env->store];
422 }
423  
424 method store_specification(Any @args) {
425 return [$self->store_namespace, [encoder => $self->encoder, @args]];
426 }
427  
428 method table(Any @args) {
429 return $self->reify($self->table_specification(@args));
430 }
431  
432 method table_namespace() {
433 return [$self->name, 'table'];
434 }
435  
436 method table_specification(Any @args) {
437 return [$self->table_namespace, [@args]];
438 }
439  
440 method term(Any @args) {
441 require Zing::Term; Zing::Term->new(@args);
442 }
443  
444 method timer(Any @args) {
445 return $self->reify($self->timer_specification(@args));
446 }
447  
448 method timer_namespace() {
449 return [$self->name, 'timer'];
450 }
451  
452 method timer_specification(Any @args) {
453 return [$self->timer_namespace, [@args]];
454 }
455  
456 method watcher(Any @args) {
457 return $self->reify($self->watcher_specification(@args));
458 }
459  
460 method watcher_namespace() {
461 return [$self->name, 'watcher'];
462 }
463  
464 method watcher_specification(Any @args) {
465 return [$self->watcher_namespace, [@args]];
466 }
467  
468 method worker(Any @args) {
469 return $self->reify($self->worker_specification(@args));
470 }
471  
472 method worker_namespace() {
473 return [$self->name, 'worker'];
474 }
475  
476 method worker_specification(Any @args) {
477 return [$self->worker_namespace, [@args]];
478 }
479  
480 method zang() {
481 return ref($self)->new(name => 'Zing/Zang');
482 }
483  
484 method zing(Any @args) {
485 require Zing; Zing->new(@args);
486 }
487  
488 1;
489  
490 =encoding utf8
491  
492 =head1 NAME
493  
494 Zing::App - Object Reifier
495  
496 =cut
497  
498 =head1 ABSTRACT
499  
500 Object Reifier with Dependency Injection
501  
502 =cut
503  
504 =head1 SYNOPSIS
505  
506 use Zing::App;
507  
508 my $app = Zing::App->new;
509  
510 # $app->queue(name => 'tasks')->send({
511 # job => time,
512 # ...
513 # });
514  
515 =cut
516  
517 =head1 DESCRIPTION
518  
519 This package provides an object which can dynamically load (reify) other
520 L<Zing> objects with dependencies.
521  
522 =cut
523  
524 =head1 LIBRARIES
525  
526 This package uses type constraints from:
527  
528 L<Zing::Types>
529  
530 =cut
531  
532 =head1 ATTRIBUTES
533  
534 This package has the following attributes:
535  
536 =cut
537  
538 =head2 env
539  
540 env(Env)
541  
542 This attribute is read-only, accepts C<(Env)> values, and is optional.
543  
544 =cut
545  
546 =head2 host
547  
548 host(Str)
549  
550 This attribute is read-only, accepts C<(Str)> values, and is optional.
551  
552 =cut
553  
554 =head2 name
555  
556 name(Str)
557  
558 This attribute is read-only, accepts C<(Str)> values, and is optional.
559  
560 =cut
561  
562 =head2 pid
563  
564 pid(Int)
565  
566 This attribute is read-only, accepts C<(Int)> values, and is optional.
567  
568 =cut
569  
570 =head1 METHODS
571  
572 This package implements the following methods:
573  
574 =cut
575  
576 =head2 cartridge
577  
578 cartridge(Any @args) : Cartridge
579  
580 The cartridge method returns a new L<Zing::Cartridge> object based on the current C<env>.
581  
582 =over 4
583  
584 =item cartridge example #1
585  
586 # given: synopsis
587  
588 my $cartridge = $app->cartridge(
589 name => 'myapp',
590 );
591  
592 # Zing::Cartridge->new(...)
593  
594 =back
595  
596 =cut
597  
598 =head2 cartridge_namespace
599  
600 cartridge_namespace() : ArrayRef[Str]
601  
602 The cartridge_namespace method returns a wordlist that represents a
603 I<cartridge> class name.
604  
605 =over 4
606  
607 =item cartridge_namespace example #1
608  
609 # given: synopsis
610  
611 $app->cartridge_namespace;
612  
613 # ['zing', 'cartridge']
614  
615 =back
616  
617 =cut
618  
619 =head2 cartridge_specification
620  
621 cartridge_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
622  
623 The cartridge_specification method returns a I<cartridge> specification, class
624 name and args, for the reifier.
625  
626 =over 4
627  
628 =item cartridge_specification example #1
629  
630 # given: synopsis
631  
632 $app->cartridge_specification;
633  
634 # [['zing', 'cartridge'], [@args]]
635  
636 =back
637  
638 =cut
639  
640 =head2 channel
641  
642 channel(Any @args) : Channel
643  
644 The channel method returns a new L<Zing::Channel> object based on the currenrt C<env>.
645  
646 =over 4
647  
648 =item channel example #1
649  
650 # given: synopsis
651  
652 my $channel = $app->channel(
653 name => 'messages',
654 );
655  
656 # Zing::Channel->new(...)
657  
658 =back
659  
660 =cut
661  
662 =head2 channel_namespace
663  
664 channel_namespace() : ArrayRef[Str]
665  
666 The channel_namespace method returns a wordlist that represents a I<channel>
667 class name.
668  
669 =over 4
670  
671 =item channel_namespace example #1
672  
673 # given: synopsis
674  
675 $app->channel_namespace;
676  
677 # ['zing', 'channel']
678  
679 =back
680  
681 =cut
682  
683 =head2 channel_specification
684  
685 channel_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
686  
687 The channel_specification method returns a I<channel> specification, class name
688 and args, for the reifier.
689  
690 =over 4
691  
692 =item channel_specification example #1
693  
694 # given: synopsis
695  
696 $app->channel_specification;
697  
698 # [['zing', 'channel'], [@args]]
699  
700 =back
701  
702 =cut
703  
704 =head2 cursor
705  
706 cursor(Any @args) : Cursor
707  
708 The cursor method returns a new L<Zing::Cursor> object based on the current C<env>.
709  
710 =over 4
711  
712 =item cursor example #1
713  
714 # given: synopsis
715  
716 my $cursor = $app->cursor(
717 lookup => $app->lookup(
718 name => 'people',
719 )
720 );
721  
722 # Zing::Cursor->new(...)
723  
724 =back
725  
726 =cut
727  
728 =head2 cursor_namespace
729  
730 cursor_namespace() : ArrayRef[Str]
731  
732 The cursor_namespace method returns a wordlist that represents a I<cursor>
733 class name.
734  
735 =over 4
736  
737 =item cursor_namespace example #1
738  
739 # given: synopsis
740  
741 $app->cursor_namespace;
742  
743 # ['zing', 'cursor']
744  
745 =back
746  
747 =cut
748  
749 =head2 cursor_specification
750  
751 cursor_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
752  
753 The cursor_specification method returns a I<cursor> specification, class name
754 and args, for the reifier.
755  
756 =over 4
757  
758 =item cursor_specification example #1
759  
760 # given: synopsis
761  
762 $app->cursor_specification;
763  
764 # [['zing', 'cursor'], [@args]]
765  
766 =back
767  
768 =cut
769  
770 =head2 daemon
771  
772 daemon(Any @args) : Daemon
773  
774 The daemon method returns a new L<Zing::Daemon> object based on the currenrt C<env>.
775  
776 =over 4
777  
778 =item daemon example #1
779  
780 # given: synopsis
781  
782 my $daemon = $app->daemon(
783 cartridge => $app->cartridge(
784 name => 'myapp',
785 )
786 );
787  
788 # Zing::Daemon->new(...)
789  
790 =back
791  
792 =cut
793  
794 =head2 daemon_namespace
795  
796 daemon_namespace() : ArrayRef[Str]
797  
798 The daemon_namespace method returns a wordlist that represents a I<daemon>
799 class name.
800  
801 =over 4
802  
803 =item daemon_namespace example #1
804  
805 # given: synopsis
806  
807 $app->daemon_namespace;
808  
809 # ['zing', 'daemon']
810  
811 =back
812  
813 =cut
814  
815 =head2 daemon_specification
816  
817 daemon_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
818  
819 The daemon_specification method returns a I<daemon> specification, class name
820 and args, for the reifier.
821  
822 =over 4
823  
824 =item daemon_specification example #1
825  
826 # given: synopsis
827  
828 $app->daemon_specification;
829  
830 # [['zing', 'daemon'], [@args]]
831  
832 =back
833  
834 =cut
835  
836 =head2 data
837  
838 data(Any @args) : Data
839  
840 The data method returns a new L<Zing::Data> object based on the current C<env>.
841  
842 =over 4
843  
844 =item data example #1
845  
846 # given: synopsis
847  
848 my $data = $app->data(
849 name => 'random',
850 );
851  
852 # Zing::Data->new(...)
853  
854 =back
855  
856 =cut
857  
858 =head2 data_namespace
859  
860 data_namespace() : ArrayRef[Str]
861  
862 The data_namespace method returns a wordlist that represents a I<data> class
863 name.
864  
865 =over 4
866  
867 =item data_namespace example #1
868  
869 # given: synopsis
870  
871 $app->data_namespace;
872  
873 # ['zing', 'data']
874  
875 =back
876  
877 =cut
878  
879 =head2 data_specification
880  
881 data_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
882  
883 The data_specification method returns a I<data> specification, class name and
884 args, for the reifier.
885  
886 =over 4
887  
888 =item data_specification example #1
889  
890 # given: synopsis
891  
892 $app->data_specification;
893  
894 # [['zing', 'data'], [@args]]
895  
896 =back
897  
898 =cut
899  
900 =head2 domain
901  
902 domain(Any @args) : Domain
903  
904 The domain method returns a new L<Zing::Domain> object based on the currenrt C<env>.
905  
906 =over 4
907  
908 =item domain example #1
909  
910 # given: synopsis
911  
912 my $domain = $app->domain(
913 name => 'person',
914 );
915  
916 # Zing::Domain->new(...)
917  
918 =back
919  
920 =cut
921  
922 =head2 domain_namespace
923  
924 domain_namespace() : ArrayRef[Str]
925  
926 The domain_namespace method returns a wordlist that represents a I<domain>
927 class name.
928  
929 =over 4
930  
931 =item domain_namespace example #1
932  
933 # given: synopsis
934  
935 $app->domain_namespace;
936  
937 # ['zing', 'domain']
938  
939 =back
940  
941 =cut
942  
943 =head2 domain_specification
944  
945 domain_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
946  
947 The domain_specification method returns a I<domain> specification, class name
948 and args, for the reifier.
949  
950 =over 4
951  
952 =item domain_specification example #1
953  
954 # given: synopsis
955  
956 $app->domain_specification;
957  
958 # [['zing', 'domain'], [@args]]
959  
960 =back
961  
962 =cut
963  
964 =head2 encoder
965  
966 encoder(Any @args) : Encoder
967  
968 The encoder method returns a new L<Zing::Encoder> object based on the current C<env>.
969  
970 =over 4
971  
972 =item encoder example #1
973  
974 # given: synopsis
975  
976 my $encoder = $app->encoder;
977  
978 # Zing::Encoder->new
979  
980 =back
981  
982 =cut
983  
984 =head2 encoder_namespace
985  
986 encoder_namespace() : ArrayRef[Str]
987  
988 The encoder_namespace method returns a wordlist that represents a I<encoder>
989 class name.
990  
991 =over 4
992  
993 =item encoder_namespace example #1
994  
995 # given: synopsis
996  
997 $app->encoder_namespace;
998  
999 # ['zing', 'encoder']
1000  
1001 =back
1002  
1003 =cut
1004  
1005 =head2 encoder_specification
1006  
1007 encoder_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1008  
1009 The encoder_specification method returns a I<encoder> specification, class name
1010 and args, for the reifier.
1011  
1012 =over 4
1013  
1014 =item encoder_specification example #1
1015  
1016 # given: synopsis
1017  
1018 $app->encoder_specification;
1019  
1020 # [['zing', 'encoder'], [@args]]
1021  
1022 =back
1023  
1024 =cut
1025  
1026 =head2 for
1027  
1028 for(Any %args) : App
1029  
1030 The for method changes the C<env> and returns a new C<app> object.
1031  
1032 =over 4
1033  
1034 =item for example #1
1035  
1036 # given: synopsis
1037  
1038 $app = $app->for(
1039 handle => 'myapp',
1040 target => 'us-east'
1041 );
1042  
1043 =back
1044  
1045 =cut
1046  
1047 =head2 fork
1048  
1049 fork(Any @args) : Fork
1050  
1051 The fork method returns a new L<Zing::Fork> object based on the currenrt C<env>.
1052  
1053 =over 4
1054  
1055 =item fork example #1
1056  
1057 # given: synopsis
1058  
1059 my $fork = $app->fork(
1060 parent => $app->process,
1061 scheme => ['MyApp', [], 1],
1062 );
1063  
1064 # Zing::Fork->new(...)
1065  
1066 =back
1067  
1068 =cut
1069  
1070 =head2 fork_namespace
1071  
1072 fork_namespace() : ArrayRef[Str]
1073  
1074 The fork_namespace method returns a wordlist that represents a I<fork> class
1075 name.
1076  
1077 =over 4
1078  
1079 =item fork_namespace example #1
1080  
1081 # given: synopsis
1082  
1083 $app->fork_namespace;
1084  
1085 # ['zing', 'fork']
1086  
1087 =back
1088  
1089 =cut
1090  
1091 =head2 fork_specification
1092  
1093 fork_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1094  
1095 The fork_specification method returns a I<fork> specification, class name and
1096 args, for the reifier.
1097  
1098 =over 4
1099  
1100 =item fork_specification example #1
1101  
1102 # given: synopsis
1103  
1104 $app->fork_specification;
1105  
1106 # [['zing', 'fork'], [@args]]
1107  
1108 =back
1109  
1110 =cut
1111  
1112 =head2 id
1113  
1114 id(Any @args) : ID
1115  
1116 The id method returns a new L<Zing::ID> object based on the current C<env>.
1117  
1118 =over 4
1119  
1120 =item id example #1
1121  
1122 # given: synopsis
1123  
1124 my $id = $app->id;
1125  
1126 # Zing::ID->new(...)
1127  
1128 =back
1129  
1130 =cut
1131  
1132 =head2 id_namespace
1133  
1134 id_namespace() : ArrayRef[Str]
1135  
1136 The id_namespace method returns a wordlist that represents a I<id> class name.
1137  
1138 =over 4
1139  
1140 =item id_namespace example #1
1141  
1142 # given: synopsis
1143  
1144 $app->id_namespace;
1145  
1146 # ['zing', 'i-d']
1147  
1148 =back
1149  
1150 =cut
1151  
1152 =head2 id_specification
1153  
1154 id_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1155  
1156 The id_specification method returns a I<id> specification, class name and args,
1157 for the reifier.
1158  
1159 =over 4
1160  
1161 =item id_specification example #1
1162  
1163 # given: synopsis
1164  
1165 $app->id_specification;
1166  
1167 # [['zing', 'i-d'], [@args]]
1168  
1169 =back
1170  
1171 =cut
1172  
1173 =head2 journal
1174  
1175 journal(Any @args) : Journal
1176  
1177 The journal method returns a new L<Zing::Journal> object based on the currenrt C<env>.
1178  
1179 =over 4
1180  
1181 =item journal example #1
1182  
1183 # given: synopsis
1184  
1185 my $journal = $app->journal;
1186  
1187 # Zing::Journal->new
1188  
1189 =back
1190  
1191 =cut
1192  
1193 =head2 journal_namespace
1194  
1195 journal_namespace() : ArrayRef[Str]
1196  
1197 The journal_namespace method returns a wordlist that represents a I<journal>
1198 class name.
1199  
1200 =over 4
1201  
1202 =item journal_namespace example #1
1203  
1204 # given: synopsis
1205  
1206 $app->journal_namespace;
1207  
1208 # ['zing', 'journal']
1209  
1210 =back
1211  
1212 =cut
1213  
1214 =head2 journal_specification
1215  
1216 journal_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1217  
1218 The journal_specification method returns a I<journal> specification, class name
1219 and args, for the reifier.
1220  
1221 =over 4
1222  
1223 =item journal_specification example #1
1224  
1225 # given: synopsis
1226  
1227 $app->journal_specification;
1228  
1229 # [['zing', 'journal'], [@args]]
1230  
1231 =back
1232  
1233 =cut
1234  
1235 =head2 kernel
1236  
1237 kernel(Any @args) : Kernel
1238  
1239 The kernel method returns a new L<Zing::Kernel> object based on the current C<env>.
1240  
1241 =over 4
1242  
1243 =item kernel example #1
1244  
1245 # given: synopsis
1246  
1247 my $kernel = $app->kernel(
1248 scheme => ['MyApp', [], 1],
1249 );
1250  
1251 # Zing::Kernel->new(...)
1252  
1253 =back
1254  
1255 =cut
1256  
1257 =head2 kernel_namespace
1258  
1259 kernel_namespace() : ArrayRef[Str]
1260  
1261 The kernel_namespace method returns a wordlist that represents a I<kernel>
1262 class name.
1263  
1264 =over 4
1265  
1266 =item kernel_namespace example #1
1267  
1268 # given: synopsis
1269  
1270 $app->kernel_namespace;
1271  
1272 # ['zing', 'kernel']
1273  
1274 =back
1275  
1276 =cut
1277  
1278 =head2 kernel_specification
1279  
1280 kernel_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1281  
1282 The kernel_specification method returns a I<kernel> specification, class name
1283 and args, for the reifier.
1284  
1285 =over 4
1286  
1287 =item kernel_specification example #1
1288  
1289 # given: synopsis
1290  
1291 $app->kernel_specification;
1292  
1293 # [['zing', 'kernel'], [@args]]
1294  
1295 =back
1296  
1297 =cut
1298  
1299 =head2 keyval
1300  
1301 keyval(Any @args) : KeyVal
1302  
1303 The keyval method returns a new L<Zing::KeyVal> object based on the currenrt C<env>.
1304  
1305 =over 4
1306  
1307 =item keyval example #1
1308  
1309 # given: synopsis
1310  
1311 my $keyval = $app->keyval(
1312 name => 'backup',
1313 );
1314  
1315 # Zing::KeyVal->new(...)
1316  
1317 =back
1318  
1319 =cut
1320  
1321 =head2 keyval_namespace
1322  
1323 keyval_namespace() : ArrayRef[Str]
1324  
1325 The keyval_namespace method returns a wordlist that represents a I<keyval>
1326 class name.
1327  
1328 =over 4
1329  
1330 =item keyval_namespace example #1
1331  
1332 # given: synopsis
1333  
1334 $app->keyval_namespace;
1335  
1336 # ['zing', 'key-val']
1337  
1338 =back
1339  
1340 =cut
1341  
1342 =head2 keyval_specification
1343  
1344 keyval_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1345  
1346 The keyval_specification method returns a I<keyval> specification, class name
1347 and args, for the reifier.
1348  
1349 =over 4
1350  
1351 =item keyval_specification example #1
1352  
1353 # given: synopsis
1354  
1355 $app->keyval_specification;
1356  
1357 # [['zing', 'key-val'], [@args]]
1358  
1359 =back
1360  
1361 =cut
1362  
1363 =head2 launcher
1364  
1365 launcher(Any @args) : Launcher
1366  
1367 The launcher method returns a new L<Zing::Launcher> object based on the currenrt C<env>.
1368  
1369 =over 4
1370  
1371 =item launcher example #1
1372  
1373 # given: synopsis
1374  
1375 my $launcher = $app->launcher;
1376  
1377 # Zing::Launcher->new(...)
1378  
1379 =back
1380  
1381 =cut
1382  
1383 =head2 launcher_namespace
1384  
1385 launcher_namespace() : ArrayRef[Str]
1386  
1387 The launcher_namespace method returns a wordlist that represents a I<launcher>
1388 class name.
1389  
1390 =over 4
1391  
1392 =item launcher_namespace example #1
1393  
1394 # given: synopsis
1395  
1396 $app->launcher_namespace;
1397  
1398 # ['zing', 'launcher']
1399  
1400 =back
1401  
1402 =cut
1403  
1404 =head2 launcher_specification
1405  
1406 launcher_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1407  
1408 The launcher_specification method returns a I<launcher> specification, class
1409 name and args, for the reifier.
1410  
1411 =over 4
1412  
1413 =item launcher_specification example #1
1414  
1415 # given: synopsis
1416  
1417 $app->launcher_specification;
1418  
1419 # [['zing', 'launcher'], [@args]]
1420  
1421 =back
1422  
1423 =cut
1424  
1425 =head2 logger
1426  
1427 logger(Any @args) : Logger
1428  
1429 The logger method returns a new L<FlightRecorder> object based on the currenrt C<env>.
1430  
1431 =over 4
1432  
1433 =item logger example #1
1434  
1435 # given: synopsis
1436  
1437 my $logger = $app->logger;
1438  
1439 # FlightRecorder->new(...)
1440  
1441 =back
1442  
1443 =cut
1444  
1445 =head2 lookup
1446  
1447 lookup(Any @args) : Lookup
1448  
1449 The lookup method returns a new L<Zing::Lookup> object based on the currenrt C<env>.
1450  
1451 =over 4
1452  
1453 =item lookup example #1
1454  
1455 # given: synopsis
1456  
1457 my $lookup = $app->lookup(
1458 name => 'people',
1459 );
1460  
1461 # Zing::Lookup->new(...)
1462  
1463 =back
1464  
1465 =cut
1466  
1467 =head2 lookup_namespace
1468  
1469 lookup_namespace() : ArrayRef[Str]
1470  
1471 The lookup_namespace method returns a wordlist that represents a I<lookup>
1472 class name.
1473  
1474 =over 4
1475  
1476 =item lookup_namespace example #1
1477  
1478 # given: synopsis
1479  
1480 $app->lookup_namespace;
1481  
1482 # ['zing', 'lookup']
1483  
1484 =back
1485  
1486 =cut
1487  
1488 =head2 lookup_specification
1489  
1490 lookup_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1491  
1492 The lookup_specification method returns a I<lookup> specification, class name
1493 and args, for the reifier.
1494  
1495 =over 4
1496  
1497 =item lookup_specification example #1
1498  
1499 # given: synopsis
1500  
1501 $app->lookup_specification;
1502  
1503 # [['zing', 'lookup'], [@args]]
1504  
1505 =back
1506  
1507 =cut
1508  
1509 =head2 mailbox
1510  
1511 mailbox(Any @args) : Mailbox
1512  
1513 The mailbox method returns a new L<Zing::Mailbox> object based on the currenrt C<env>.
1514  
1515 =over 4
1516  
1517 =item mailbox example #1
1518  
1519 # given: synopsis
1520  
1521 my $mailbox = $app->mailbox(
1522 name => 'shared',
1523 );
1524  
1525 # Zing::Mailbox->new(...)
1526  
1527 =back
1528  
1529 =cut
1530  
1531 =head2 mailbox_namespace
1532  
1533 mailbox_namespace() : ArrayRef[Str]
1534  
1535 The mailbox_namespace method returns a wordlist that represents a I<mailbox>
1536 class name.
1537  
1538 =over 4
1539  
1540 =item mailbox_namespace example #1
1541  
1542 # given: synopsis
1543  
1544 $app->mailbox_namespace;
1545  
1546 # ['zing', 'mailbox']
1547  
1548 =back
1549  
1550 =cut
1551  
1552 =head2 mailbox_specification
1553  
1554 mailbox_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1555  
1556 The mailbox_specification method returns a I<mailbox> specification, class name
1557 and args, for the reifier.
1558  
1559 =over 4
1560  
1561 =item mailbox_specification example #1
1562  
1563 # given: synopsis
1564  
1565 $app->mailbox_specification;
1566  
1567 # [['zing', 'mailbox'], [@args]]
1568  
1569 =back
1570  
1571 =cut
1572  
1573 =head2 meta
1574  
1575 meta(Any @args) : Meta
1576  
1577 The meta method returns a new L<Zing::Meta> object based on the currenrt C<env>.
1578  
1579 =over 4
1580  
1581 =item meta example #1
1582  
1583 # given: synopsis
1584  
1585 my $meta = $app->meta(
1586 name => rand,
1587 );
1588  
1589 # Zing::Meta->new(...)
1590  
1591 =back
1592  
1593 =cut
1594  
1595 =head2 meta_namespace
1596  
1597 meta_namespace() : ArrayRef[Str]
1598  
1599 The meta_namespace method returns a wordlist that represents a I<meta> class
1600 name.
1601  
1602 =over 4
1603  
1604 =item meta_namespace example #1
1605  
1606 # given: synopsis
1607  
1608 $app->meta_namespace;
1609  
1610 # ['zing', 'meta']
1611  
1612 =back
1613  
1614 =cut
1615  
1616 =head2 meta_specification
1617  
1618 meta_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1619  
1620 The meta_specification method returns a I<meta> specification, class name and
1621 args, for the reifier.
1622  
1623 =over 4
1624  
1625 =item meta_specification example #1
1626  
1627 # given: synopsis
1628  
1629 $app->meta_specification;
1630  
1631 # [['zing', 'meta'], [@args]]
1632  
1633 =back
1634  
1635 =cut
1636  
1637 =head2 process
1638  
1639 process(Any @args) : Process
1640  
1641 The process method returns a new L<Zing::Process> object based on the currenrt C<env>.
1642  
1643 =over 4
1644  
1645 =item process example #1
1646  
1647 # given: synopsis
1648  
1649 my $process = $app->process;
1650  
1651 # Zing::Process->new(...)
1652  
1653 =back
1654  
1655 =cut
1656  
1657 =head2 process_namespace
1658  
1659 process_namespace() : ArrayRef[Str]
1660  
1661 The process_namespace method returns a wordlist that represents a I<process>
1662 class name.
1663  
1664 =over 4
1665  
1666 =item process_namespace example #1
1667  
1668 # given: synopsis
1669  
1670 $app->process_namespace;
1671  
1672 # ['zing', 'process']
1673  
1674 =back
1675  
1676 =cut
1677  
1678 =head2 process_specification
1679  
1680 process_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1681  
1682 The process_specification method returns a I<process> specification, class name
1683 and args, for the reifier.
1684  
1685 =over 4
1686  
1687 =item process_specification example #1
1688  
1689 # given: synopsis
1690  
1691 $app->process_specification;
1692  
1693 # [['zing', 'process'], [@args]]
1694  
1695 =back
1696  
1697 =cut
1698  
1699 =head2 pubsub
1700  
1701 pubsub(Any @args) : PubSub
1702  
1703 The pubsub method returns a new L<Zing::PubSub> object based on the currenrt C<env>.
1704  
1705 =over 4
1706  
1707 =item pubsub example #1
1708  
1709 # given: synopsis
1710  
1711 my $pubsub = $app->pubsub(
1712 name => 'commands',
1713 );
1714  
1715 # Zing::PubSub->new(...)
1716  
1717 =back
1718  
1719 =cut
1720  
1721 =head2 pubsub_namespace
1722  
1723 pubsub_namespace() : ArrayRef[Str]
1724  
1725 The pubsub_namespace method returns a wordlist that represents a I<pubsub>
1726 class name.
1727  
1728 =over 4
1729  
1730 =item pubsub_namespace example #1
1731  
1732 # given: synopsis
1733  
1734 $app->pubsub_namespace;
1735  
1736 # ['zing', 'pub-sub']
1737  
1738 =back
1739  
1740 =cut
1741  
1742 =head2 pubsub_specification
1743  
1744 pubsub_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1745  
1746 the pubsub_specification method returns a i<pubsub> specification, class name
1747 and args, for the reifier.
1748  
1749 =over 4
1750  
1751 =item pubsub_specification example #1
1752  
1753 # given: synopsis
1754  
1755 $app->pubsub_specification;
1756  
1757 # [['zing', 'pub-sub'], [@args]]
1758  
1759 =back
1760  
1761 =cut
1762  
1763 =head2 queue
1764  
1765 queue(Any @args) : Queue
1766  
1767 The queue method returns a new L<Zing::Queue> object based on the currenrt C<env>.
1768  
1769 =over 4
1770  
1771 =item queue example #1
1772  
1773 # given: synopsis
1774  
1775 my $queue = $app->queue(
1776 name => 'tasks',
1777 );
1778  
1779 # Zing::Queue->new(...)
1780  
1781 =back
1782  
1783 =cut
1784  
1785 =head2 queue_namespace
1786  
1787 queue_namespace() : ArrayRef[Str]
1788  
1789 The queue_namespace method returns a wordlist that represents a I<queue> class
1790 name.
1791  
1792 =over 4
1793  
1794 =item queue_namespace example #1
1795  
1796 # given: synopsis
1797  
1798 $app->queue_namespace;
1799  
1800 # ['zing', 'queue']
1801  
1802 =back
1803  
1804 =cut
1805  
1806 =head2 queue_specification
1807  
1808 queue_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1809  
1810 The queue_specification method returns a I<queue> specification, class name and
1811 args, for the reifier.
1812  
1813 =over 4
1814  
1815 =item queue_specification example #1
1816  
1817 # given: synopsis
1818  
1819 $app->queue_specification;
1820  
1821 # [['zing', 'queue'], [@args]]
1822  
1823 =back
1824  
1825 =cut
1826  
1827 =head2 reify
1828  
1829 reify(Tuple[ArrayRef, ArrayRef] $spec) : Object
1830  
1831 The reify method executes a specification, reifies and returns an object.
1832  
1833 =over 4
1834  
1835 =item reify example #1
1836  
1837 # given: synopsis
1838  
1839 my $queue = $app->reify(
1840 [['zing', 'queue'], ['name', 'tasks']],
1841 );
1842  
1843 # Zing::Queue->new(
1844 # name => 'tasks'
1845 # )
1846  
1847 =back
1848  
1849 =cut
1850  
1851 =head2 repo
1852  
1853 repo(Any @args) : Repo
1854  
1855 The repo method returns a new L<Zing::Repo> object based on the currenrt C<env>.
1856  
1857 =over 4
1858  
1859 =item repo example #1
1860  
1861 # given: synopsis
1862  
1863 my $repo = $app->repo(
1864 name => '$registry',
1865 );
1866  
1867 # Zing::Repo->new(...)
1868  
1869 =back
1870  
1871 =cut
1872  
1873 =head2 repo_namespace
1874  
1875 repo_namespace() : ArrayRef[Str]
1876  
1877 The repo_namespace method returns a wordlist that represents a I<repo> class
1878 name.
1879  
1880 =over 4
1881  
1882 =item repo_namespace example #1
1883  
1884 # given: synopsis
1885  
1886 $app->repo_namespace;
1887  
1888 # ['zing', 'repo']
1889  
1890 =back
1891  
1892 =cut
1893  
1894 =head2 repo_specification
1895  
1896 repo_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1897  
1898 The repo_specification method returns a I<repo> specification, class name and
1899 args, for the reifier.
1900  
1901 =over 4
1902  
1903 =item repo_specification example #1
1904  
1905 # given: synopsis
1906  
1907 $app->repo_specification;
1908  
1909 # [['zing', 'repo'], [@args]]
1910  
1911 =back
1912  
1913 =cut
1914  
1915 =head2 ring
1916  
1917 ring(Any @args) : Ring
1918  
1919 The ring method returns a new L<Zing::Ring> object based on the currenrt C<env>.
1920  
1921 =over 4
1922  
1923 =item ring example #1
1924  
1925 # given: synopsis
1926  
1927 my $ring = $app->ring(
1928 processes => [
1929 $app->process,
1930 $app->process,
1931 ],
1932 );
1933  
1934 # Zing::Ring->new(...)
1935  
1936 =back
1937  
1938 =cut
1939  
1940 =head2 ring_namespace
1941  
1942 ring_namespace() : ArrayRef[Str]
1943  
1944 The ring_namespace method returns a wordlist that represents a I<ring> class
1945 name.
1946  
1947 =over 4
1948  
1949 =item ring_namespace example #1
1950  
1951 # given: synopsis
1952  
1953 $app->ring_namespace;
1954  
1955 # ['zing', 'ring']
1956  
1957 =back
1958  
1959 =cut
1960  
1961 =head2 ring_specification
1962  
1963 ring_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
1964  
1965 The ring_specification method returns a I<ring> specification, class name and
1966 args, for the reifier.
1967  
1968 =over 4
1969  
1970 =item ring_specification example #1
1971  
1972 # given: synopsis
1973  
1974 $app->ring_specification;
1975  
1976 # [['zing', 'ring'], [@args]]
1977  
1978 =back
1979  
1980 =cut
1981  
1982 =head2 ringer
1983  
1984 ringer(Any @args) : Ring
1985  
1986 The ringer method returns a new L<Zing::Ringer> object based on the currenrt C<env>.
1987  
1988 =over 4
1989  
1990 =item ringer example #1
1991  
1992 # given: synopsis
1993  
1994 my $ringer = $app->ringer(
1995 schemes => [
1996 ['MyApp1', [], 1],
1997 ['MyApp2', [], 1],
1998 ],
1999 );
2000  
2001 # Zing::Ringer->new(...)
2002  
2003 =back
2004  
2005 =cut
2006  
2007 =head2 ringer_namespace
2008  
2009 ringer_namespace() : ArrayRef[Str]
2010  
2011 The ringer_namespace method returns a wordlist that represents a I<ringer>
2012 class name.
2013  
2014 =over 4
2015  
2016 =item ringer_namespace example #1
2017  
2018 # given: synopsis
2019  
2020 $app->ringer_namespace;
2021  
2022 # ['zing', 'ringer']
2023  
2024 =back
2025  
2026 =cut
2027  
2028 =head2 ringer_specification
2029  
2030 ringer_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2031  
2032 The ringer_specification method returns a I<ringer> specification, class name
2033 and args, for the reifier.
2034  
2035 =over 4
2036  
2037 =item ringer_specification example #1
2038  
2039 # given: synopsis
2040  
2041 $app->ringer_specification;
2042  
2043 # [['zing', 'ringer'], [@args]]
2044  
2045 =back
2046  
2047 =cut
2048  
2049 =head2 savepoint
2050  
2051 savepoint(Any @args) : Savepoint
2052  
2053 The savepoint method returns a new L<Zing::Savepoint> object based on the currenrt C<env>.
2054  
2055 =over 4
2056  
2057 =item savepoint example #1
2058  
2059 # given: synopsis
2060  
2061 my $savepoint = $app->savepoint(
2062 lookup => $app->lookup(
2063 name => 'people',
2064 )
2065 );
2066  
2067 # Zing::Savepoint->new(...)
2068  
2069 =back
2070  
2071 =cut
2072  
2073 =head2 savepoint_namespace
2074  
2075 savepoint_namespace() : ArrayRef[Str]
2076  
2077 The savepoint_namespace method returns a wordlist that represents a
2078 I<savepoint> class name.
2079  
2080 =over 4
2081  
2082 =item savepoint_namespace example #1
2083  
2084 # given: synopsis
2085  
2086 $app->savepoint_namespace;
2087  
2088 # ['zing', 'savepoint']
2089  
2090 =back
2091  
2092 =cut
2093  
2094 =head2 savepoint_specification
2095  
2096 savepoint_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2097  
2098 The savepoint_specification method returns a I<savepoint> specification, class
2099 name and args, for the reifier.
2100  
2101 =over 4
2102  
2103 =item savepoint_specification example #1
2104  
2105 # given: synopsis
2106  
2107 $app->savepoint_specification;
2108  
2109 # [['zing', 'savepoint'], [@args]]
2110  
2111 =back
2112  
2113 =cut
2114  
2115 =head2 scheduler
2116  
2117 scheduler(Any @args) : Scheduler
2118  
2119 The scheduler method returns a new L<Zing::Scheduler> object based on the currenrt C<env>.
2120  
2121 =over 4
2122  
2123 =item scheduler example #1
2124  
2125 # given: synopsis
2126  
2127 my $scheduler = $app->scheduler;
2128  
2129 # Zing::Scheduler->new(...)
2130  
2131 =back
2132  
2133 =cut
2134  
2135 =head2 scheduler_namespace
2136  
2137 scheduler_namespace() : ArrayRef[Str]
2138  
2139 The scheduler_namespace method returns a wordlist that represents a
2140 I<scheduler> class name.
2141  
2142 =over 4
2143  
2144 =item scheduler_namespace example #1
2145  
2146 # given: synopsis
2147  
2148 $app->scheduler_namespace;
2149  
2150 # ['zing', 'scheduler']
2151  
2152 =back
2153  
2154 =cut
2155  
2156 =head2 scheduler_specification
2157  
2158 scheduler_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2159  
2160 The scheduler_specification method returns a I<scheduler> specification, class
2161 name and args, for the reifier.
2162  
2163 =over 4
2164  
2165 =item scheduler_specification example #1
2166  
2167 # given: synopsis
2168  
2169 $app->scheduler_specification;
2170  
2171 # [['zing', 'scheduler'], [@args]]
2172  
2173 =back
2174  
2175 =cut
2176  
2177 =head2 search
2178  
2179 search(Any @args) : Search
2180  
2181 The search method returns a new L<Zing::Search> object based on the currenrt C<env>.
2182  
2183 =over 4
2184  
2185 =item search example #1
2186  
2187 # given: synopsis
2188  
2189 my $search = $app->search;
2190  
2191 # Zing::Search->new(...)
2192  
2193 =back
2194  
2195 =cut
2196  
2197 =head2 search_namespace
2198  
2199 search_namespace() : ArrayRef[Str]
2200  
2201 The search_namespace method returns a wordlist that represents a I<search>
2202 class name.
2203  
2204 =over 4
2205  
2206 =item search_namespace example #1
2207  
2208 # given: synopsis
2209  
2210 $app->search_namespace;
2211  
2212 # ['zing', 'search']
2213  
2214 =back
2215  
2216 =cut
2217  
2218 =head2 search_specification
2219  
2220 search_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2221  
2222 The search_specification method returns a I<search> specification, class name
2223 and args, for the reifier.
2224  
2225 =over 4
2226  
2227 =item search_specification example #1
2228  
2229 # given: synopsis
2230  
2231 $app->search_specification;
2232  
2233 # [['zing', 'search'], [@args]]
2234  
2235 =back
2236  
2237 =cut
2238  
2239 =head2 simple
2240  
2241 simple(Any @args) : Simple
2242  
2243 The simple method returns a new L<Zing::Simple> object based on the currenrt C<env>.
2244  
2245 =over 4
2246  
2247 =item simple example #1
2248  
2249 # given: synopsis
2250  
2251 my $simple = $app->simple;
2252  
2253 # Zing::Simple->new(...)
2254  
2255 =back
2256  
2257 =cut
2258  
2259 =head2 simple_namespace
2260  
2261 simple_namespace() : ArrayRef[Str]
2262  
2263 The simple_namespace method returns a wordlist that represents a I<simple>
2264 class name.
2265  
2266 =over 4
2267  
2268 =item simple_namespace example #1
2269  
2270 # given: synopsis
2271  
2272 $app->simple_namespace;
2273  
2274 # ['zing', 'simple']
2275  
2276 =back
2277  
2278 =cut
2279  
2280 =head2 simple_specification
2281  
2282 simple_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2283  
2284 The simple_specification method returns a I<simple> specification, class name
2285 and args, for the reifier.
2286  
2287 =over 4
2288  
2289 =item simple_specification example #1
2290  
2291 # given: synopsis
2292  
2293 $app->simple_specification;
2294  
2295 # [['zing', 'simple'], [@args]]
2296  
2297 =back
2298  
2299 =cut
2300  
2301 =head2 single
2302  
2303 single(Any @args) : Single
2304  
2305 The single method returns a new L<Zing::Single> object based on the currenrt C<env>.
2306  
2307 =over 4
2308  
2309 =item single example #1
2310  
2311 # given: synopsis
2312  
2313 my $single = $app->single;
2314  
2315 # Zing::Single->new(...)
2316  
2317 =back
2318  
2319 =cut
2320  
2321 =head2 single_namespace
2322  
2323 single_namespace() : ArrayRef[Str]
2324  
2325 The single_namespace method returns a wordlist that represents a I<single>
2326 class name.
2327  
2328 =over 4
2329  
2330 =item single_namespace example #1
2331  
2332 # given: synopsis
2333  
2334 $app->single_namespace;
2335  
2336 # ['zing', 'single']
2337  
2338 =back
2339  
2340 =cut
2341  
2342 =head2 single_specification
2343  
2344 single_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2345  
2346 The single_specification method returns a I<single> specification, class name
2347 and args, for the reifier.
2348  
2349 =over 4
2350  
2351 =item single_specification example #1
2352  
2353 # given: synopsis
2354  
2355 $app->single_specification;
2356  
2357 # [['zing', 'single'], [@args]]
2358  
2359 =back
2360  
2361 =cut
2362  
2363 =head2 space
2364  
2365 space(Str @args) : Space
2366  
2367 The space method returns a new L<Data::Object::Space> object.
2368  
2369 =over 4
2370  
2371 =item space example #1
2372  
2373 # given: synopsis
2374  
2375 my $space = $app->space(
2376 'zing',
2377 );
2378  
2379 # Data::Object::Space->new(...)
2380  
2381 =back
2382  
2383 =cut
2384  
2385 =head2 spawner
2386  
2387 spawner(Any @args) : Spawner
2388  
2389 The spawner method returns a new L<Zing::Spawner> object based on the currenrt C<env>.
2390  
2391 =over 4
2392  
2393 =item spawner example #1
2394  
2395 # given: synopsis
2396  
2397 my $spawner = $app->spawner;
2398  
2399 # Zing::Spawner->new(...)
2400  
2401 =back
2402  
2403 =cut
2404  
2405 =head2 spawner_namespace
2406  
2407 spawner_namespace() : ArrayRef[Str]
2408  
2409 The spawner_namespace method returns a wordlist that represents a I<spawner>
2410 class name.
2411  
2412 =over 4
2413  
2414 =item spawner_namespace example #1
2415  
2416 # given: synopsis
2417  
2418 $app->spawner_namespace;
2419  
2420 # ['zing', 'spawner']
2421  
2422 =back
2423  
2424 =cut
2425  
2426 =head2 spawner_specification
2427  
2428 spawner_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2429  
2430 The spawner_specification method returns a I<spawner> specification, class name
2431 and args, for the reifier.
2432  
2433 =over 4
2434  
2435 =item spawner_specification example #1
2436  
2437 # given: synopsis
2438  
2439 $app->spawner_specification;
2440  
2441 # [['zing', 'spawner'], [@args]]
2442  
2443 =back
2444  
2445 =cut
2446  
2447 =head2 store
2448  
2449 store(Any @args) : Store
2450  
2451 The store method returns a new L<Zing::Store> object based on the currenrt C<env>.
2452  
2453 =over 4
2454  
2455 =item store example #1
2456  
2457 # given: synopsis
2458  
2459 my $store = $app->store;
2460  
2461 # Zing::Store::Hash->new(...)
2462  
2463 # e.g.
2464 # $app->env->store # Zing::Store::Hash
2465  
2466 # e.g.
2467 # $ENV{ZING_STORE} # Zing::Store::Hash
2468  
2469 =back
2470  
2471 =cut
2472  
2473 =head2 store_namespace
2474  
2475 store_namespace() : ArrayRef[Str]
2476  
2477 The store_namespace method returns a wordlist that represents a I<store> class
2478 name.
2479  
2480 =over 4
2481  
2482 =item store_namespace example #1
2483  
2484 # given: synopsis
2485  
2486 $app->store_namespace;
2487  
2488 # $ENV{ZING_STORE}
2489  
2490 =back
2491  
2492 =cut
2493  
2494 =head2 store_specification
2495  
2496 store_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2497  
2498 The store_specification method returns a I<store> specification, class name and
2499 args, for the reifier.
2500  
2501 =over 4
2502  
2503 =item store_specification example #1
2504  
2505 # given: synopsis
2506  
2507 $app->store_specification;
2508  
2509 # [['zing', 'store'], [@args]]
2510  
2511 =back
2512  
2513 =cut
2514  
2515 =head2 table
2516  
2517 table(Any @args) : Table
2518  
2519 The table method returns a new L<Zing::Table> object based on the currenrt C<env>.
2520  
2521 =over 4
2522  
2523 =item table example #1
2524  
2525 # given: synopsis
2526  
2527 my $table = $app->table(
2528 name => 'people',
2529 );
2530  
2531 # Zing::Table->new(...)
2532  
2533 =back
2534  
2535 =cut
2536  
2537 =head2 table_namespace
2538  
2539 table_namespace() : ArrayRef[Str]
2540  
2541 The table_namespace method returns a wordlist that represents a I<table> class
2542 name.
2543  
2544 =over 4
2545  
2546 =item table_namespace example #1
2547  
2548 # given: synopsis
2549  
2550 $app->table_namespace;
2551  
2552 # ['zing', 'table']
2553  
2554 =back
2555  
2556 =cut
2557  
2558 =head2 table_specification
2559  
2560 table_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2561  
2562 The table_specification method returns a I<table> specification, class name and
2563 args, for the reifier.
2564  
2565 =over 4
2566  
2567 =item table_specification example #1
2568  
2569 # given: synopsis
2570  
2571 $app->table_specification;
2572  
2573 # [['zing', 'table'], [@args]]
2574  
2575 =back
2576  
2577 =cut
2578  
2579 =head2 term
2580  
2581 term(Any @args) : Term
2582  
2583 The term method returns a new L<Zing::Term> object based on the currenrt C<env>.
2584  
2585 =over 4
2586  
2587 =item term example #1
2588  
2589 # given: synopsis
2590  
2591 my $term = $app->term(
2592 $app->process,
2593 );
2594  
2595 # Zing::Term->new(...)
2596  
2597 =back
2598  
2599 =cut
2600  
2601 =head2 timer
2602  
2603 timer(Any @args) : Timer
2604  
2605 The timer method returns a new L<Zing::Timer> object based on the currenrt C<env>.
2606  
2607 =over 4
2608  
2609 =item timer example #1
2610  
2611 # given: synopsis
2612  
2613 my $timer = $app->timer;
2614  
2615 # Zing::Timer->new(...)
2616  
2617 =back
2618  
2619 =cut
2620  
2621 =head2 timer_namespace
2622  
2623 timer_namespace() : ArrayRef[Str]
2624  
2625 The timer_namespace method returns a wordlist that represents a I<timer> class
2626 name.
2627  
2628 =over 4
2629  
2630 =item timer_namespace example #1
2631  
2632 # given: synopsis
2633  
2634 $app->timer_namespace;
2635  
2636 # ['zing', 'timer']
2637  
2638 =back
2639  
2640 =cut
2641  
2642 =head2 timer_specification
2643  
2644 timer_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2645  
2646 The timer_specification method returns a I<timer> specification, class name and
2647 args, for the reifier.
2648  
2649 =over 4
2650  
2651 =item timer_specification example #1
2652  
2653 # given: synopsis
2654  
2655 $app->timer_specification;
2656  
2657 # [['zing', 'timer'], [@args]]
2658  
2659 =back
2660  
2661 =cut
2662  
2663 =head2 watcher
2664  
2665 watcher(Any @args) : Watcher
2666  
2667 The watcher method returns a new L<Zing::Watcher> object based on the currenrt C<env>.
2668  
2669 =over 4
2670  
2671 =item watcher example #1
2672  
2673 # given: synopsis
2674  
2675 my $watcher = $app->watcher;
2676  
2677 # Zing::Watcher->new(...)
2678  
2679 =back
2680  
2681 =cut
2682  
2683 =head2 watcher_namespace
2684  
2685 watcher_namespace() : ArrayRef[Str]
2686  
2687 The watcher_namespace method returns a wordlist that represents a I<watcher>
2688 class name.
2689  
2690 =over 4
2691  
2692 =item watcher_namespace example #1
2693  
2694 # given: synopsis
2695  
2696 $app->watcher_namespace;
2697  
2698 # ['zing', 'watcher']
2699  
2700 =back
2701  
2702 =cut
2703  
2704 =head2 watcher_specification
2705  
2706 watcher_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2707  
2708 The watcher_specification method returns a I<watcher> specification, class name
2709 and args, for the reifier.
2710  
2711 =over 4
2712  
2713 =item watcher_specification example #1
2714  
2715 # given: synopsis
2716  
2717 $app->watcher_specification;
2718  
2719 # [['zing', 'watcher'], [@args]]
2720  
2721 =back
2722  
2723 =cut
2724  
2725 =head2 worker
2726  
2727 worker(Any @args) : Worker
2728  
2729 The worker method returns a new L<Zing::Worker> object based on the currenrt C<env>.
2730  
2731 =over 4
2732  
2733 =item worker example #1
2734  
2735 # given: synopsis
2736  
2737 my $worker = $app->worker;
2738  
2739 # Zing::Worker->new(...)
2740  
2741 =back
2742  
2743 =cut
2744  
2745 =head2 worker_namespace
2746  
2747 worker_namespace() : ArrayRef[Str]
2748  
2749 The worker_namespace method returns a wordlist that represents a I<worker>
2750 class name.
2751  
2752 =over 4
2753  
2754 =item worker_namespace example #1
2755  
2756 # given: synopsis
2757  
2758 $app->worker_namespace;
2759  
2760 # ['zing', 'worker']
2761  
2762 =back
2763  
2764 =cut
2765  
2766 =head2 worker_specification
2767  
2768 worker_specification(Any @args) : Tuple[ArrayRef, ArrayRef]
2769  
2770 The worker_specification method returns a I<worker> specification, class name
2771 and args, for the reifier.
2772  
2773 =over 4
2774  
2775 =item worker_specification example #1
2776  
2777 # given: synopsis
2778  
2779 $app->worker_specification;
2780  
2781 # [['zing', 'worker'], [@args]]
2782  
2783 =back
2784  
2785 =cut
2786  
2787 =head2 zang
2788  
2789 zang() : App
2790  
2791 The zang method returns a new L<Zing::Zang> object.
2792  
2793 =over 4
2794  
2795 =item zang example #1
2796  
2797 # given: synopsis
2798  
2799 $app = $app->zang;
2800  
2801 # Zing::App->new(name => 'zing/zang')
2802  
2803 =back
2804  
2805 =cut
2806  
2807 =head2 zing
2808  
2809 zing(Any @args) : Zing
2810  
2811 The zing method returns a new L<Zing> object.
2812  
2813 =over 4
2814  
2815 =item zing example #1
2816  
2817 # given: synopsis
2818  
2819 my $zing = $app->zing(
2820 scheme => ['MyApp', [], 1],
2821 );
2822  
2823 # Zing->new(...)
2824  
2825 =back
2826  
2827 =cut
2828  
2829 =head1 AUTHOR
2830  
2831 Al Newkirk, C<awncorp@cpan.org>
2832  
2833 =head1 LICENSE
2834  
2835 Copyright (C) 2011-2019, Al Newkirk, et al.
2836  
2837 This is free software; you can redistribute it and/or modify it under the terms
2838 of the The Apache License, Version 2.0, as elucidated in the L<"license
2839 file"|https://github.com/iamalnewkirk/zing/blob/master/LICENSE>.
2840  
2841 =head1 PROJECT
2842  
2843 L<Wiki|https://github.com/iamalnewkirk/zing/wiki>
2844  
2845 L<Project|https://github.com/iamalnewkirk/zing>
2846  
2847 L<Initiatives|https://github.com/iamalnewkirk/zing/projects>
2848  
2849 L<Milestones|https://github.com/iamalnewkirk/zing/milestones>
2850  
2851 L<Contributing|https://github.com/iamalnewkirk/zing/blob/master/CONTRIBUTE.md>
2852  
2853 L<Issues|https://github.com/iamalnewkirk/zing/issues>
2854  
2855 =cut