akserg/dojo-ioc — Issue #1: Simple instantiation syntax for constants from Primitive classes
Author: akserg
Created: 2012-02-21 07:15:37+00:00
State: open

All Primitive classes (String, Number, Date, Array, Boolean) must have simple syntax to be instantiated:
"name" : { type : "String", args : ["Mickle"]} - "name" : "Mickle"
"version" : { type : "Number", args : [1000]} - "version" : 1000
"myBirthdate" : {type : "Date", "args" : ["01/02/2010"]} - "myBirthdate" : new Date("01/02/2010")
"anyTypes" : { type : "Array", args : ["1", 12, false] } - "anyTypes" : ["1", 12, false]
"isValid" : { type : "Boolean", args : [true] } - isValid : true