I found this article by Dan Vega which provided some useful information:
Here is the function and annotations:
/**
* @httpMethod GET
* @description I am the component description
* @hint I do something
*
*/
function index(event){
var rc = event.getCollection();
local.foo = getMetaData(this);
writedump(local.foo);abort;
}
Now instead of each annotation displaying as it's own struct element, only the first one is picked up. Here is what the dump produces:
| HTTPMETHOD | GET * @description I am the component description * @hint I do something * |
| NAME | index |
| PARAMETERS | | array |
|---|
| 1 | | struct |
|---|
| NAME | event | | REQUIRED | false |
|
|
Any ideas why only the first one is picked up?
Thanks guys. I know this isn't fully related to ColdBox, but it will come in handy in the module i'm going to build/share.
Cheers,
Nolan