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!


Leave a Reply to Billy Cravens Cancel reply

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

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

Facebook photo

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

Connecting to %s