function is a very handy way to introspect the functions, properties, and annotations of a component in an easy-to-digest format of arrays and structs. ColdFusion even nests structs to represent the metadata of the classes your component extends as well. Recently, for an enhancement I was building
, the DI/AOP
framework inside ColdBox
, I wanted to be able to condense all the metadata down for the component in question as well as all the components it inherits from to a single list of functions, properties, and annotations. After a short bit of Googling, I didn't find any code that did that so I decided it was a perfect opportunity to write a function that did just that.