Scorpio Functions: GetComponentMetaData

Word Count: 149
I would like to start talking about some of the new functions in Scorpio. The first one we are going to discuss is the getComponentMetaData function. This function will get meta data about the component for ColdFusion component or Interface. The function takes a path parameter and can me a dot notation or absolute path the component. I know most of you are going to quickly point out that you could do this in the past using the getMetaData function. There is a big difference for me though. The getMetadata accepted a component that has already been instantiated. When using the new getComponentMetaData function you do not need to create an instance of the component, it can read this information directly from the component. In my quick example I am referencing a component named art in the same directory.
<cfset meta = getComponentMetaData("art")>
<cfdump var="#meta#">

Comments



Post Your Comment

Leave this field empty







Show Captcha

If you subscribe, any new posts to this thread will be sent to your email address.

Copyright © 2007 Dan Vega | BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.