Introspecting Application.cfc

I’ve gotten this question a bunch of times. How do you get information about what’s enabled in your application scope? How do I know if ORM is enabled, or what the datasource is?

Pretty easy – Instantiate the Application scope, and then get that information from the This scope.

8 thoughts on “Introspecting Application.cfc

  1. Nice! I never thought of actually creating a new instance of the CFC. Very cool idea! I always used some hacky approach like dumping out the secret properties of the application scope. Your way is much better!

    Like

Leave a Reply to Billy Cravens Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s