drails_commons 0.0.4 drails_commons: ^0.0.4 copied to clipboard
Package used for drails_server and can be shared for other libraries, includent client side libraries.
Drails Commons #
This library mantains common functions and variables usful for drails_di, dson and drails.
Examples:
//Get the value of the annotation of type Annotation1 that is over the class of instanceMirro1
var annotationValue = GetValueOfAnnotation<Annotation1>().fromInstance(instanceMirro1);
//Get the value of the annotation of type Annotation1 that is over the class of declarationMirror1
var annotationValue = GetValueOfAnnotation<Annotation1>().fromDeclaration(declarationMirror1);
//Get the list of values of the annotation of type Annotation1 that is over the class of instanceMirro1
var annotationValue = GetValuesOfAnnotations<Annotation1>().fromInstance(instanceMirro1);
//Get the value of the annotation of type Annotation1 that is over the class of declarationMirror1
var annotationValue = GetValuesOfAnnotations<Annotation1>().fromDeclaration(declarationMirror1);