What's New in 2.5.2

This version is mostly a fixes update, however, we managed to squeeze in some left out functionalities from the main 2.5.0 release. If you would like to see all the important fixes and updates for this release, please see the Release Notes.

New Interception Points: afterPluginCreation, afterHandlerCreation

This two new interception points give way for tons of possibilities in the realm of dependency injection, AOP and caching mechanisms. With these two interception points, you will be able to intercept the creation of any plugin or handler in your ColdBox applications.

New Interceptor: Autowire

Thanks to the feature mentioned above, you can now use the autowire interceptor to wire up dependencies from an object factory like ColdSpring or LightWire into the following:

  • Plugins
  • Handlers
  • Interceptors

Basically, everything!! How hard is it? Well, thanks to conventions and metadata, super easy!!

  1. Just add the interceptor declaration to your coldbox configuration file
  2. Add the autowire=true metadata to your cfcomponent tag of your plugin, handler or interceptor.
  3. Create the appropriate getter/setter methods

There you go, you can now very easily autowire dependencies into any ColdBox object.

Persist Variables Method now exposed

The persistVariables() method for relocating on set next event and rout has been exposed as an API method on the controller and supertype to permit flash memory of the request collection on demand. So now you can explicitly use this method to flash save variables into the flash memory of the framework and then relocate with confidence.

<cfset persistVariables('myObject,myArray,myString')>
<!--- Relocate with Confidence --->
<cfset setNextRoute('main/home')>

Utilities new method: isSSL()

This new method, let's you know if you are under SSL or not.

Included Lightwire New Method: Containsbean()

The embedded lightwire cfc now offers a new method called containsBean in which it will tell you if a bean is defined in its declaration or not.


Copyright 2006 ColdBox Framework by Luis Majano