ColdBox Platform

ColdBox Platform
Original author(s) Ortus Solutions, Corp
Developer(s)
Initial release June 15, 2006 (2006-06-15)
Stable release 4.1.0 / May 6, 2015 (2015-05-06)[1]
Development status Active
Written in CFML, Java
Operating system Cross-platform
Type Web application framework
License Apache License v2
Website

ColdBox is an open source, conventions based modular web application framework intended for building enterprise applications with CFML. ColdBox uses Convention over configuration and aims for simplicity, rapid development. It makes use of Model-view-controller, Dependency injection, Unit testing, Aspect-oriented programming architectural patterns. ColdBox allows for development of stand-alone modules which can be shared across apps. ColdBox is an active and heavily documented CFML framework.[2]

History

Platforms

Coldbox is supported on Lucee, Railo (Two popular open source CFML engines) and Adobe's Coldfusion application servers.

It has supported IDE plugins for both Eclipse IDE, Adobe ColdFusion Builder and Sublime Text

Usage

Below is a list of some notable users of the Coldbox Platform.[5]

Overview

High-level attributes of ColdBox:


Internal Frameworks

The ColdBox Platform comprises three independent frameworks:

Controllers

ColdBox is conventions-based framework that is programmed in CFML, differing from other CFML MVC frameworks that use XML declarative logic for their controllers.

Below is an example of a controller:

component{

  // Use DI for hibernate virtual services
  property name="userService" inject="entityservice:User";

   function sayHello(event){
     return "hello";
  }

   function list(event){
     // render out all users in json format
     event.renderData(type="json", data = userService.list() );
  }
}

URL Mappings

ColdBox supports URL mappings and routing Rails style but adapted for ColdFusion. It also supports the creation of RESTful routing:

addRoute(pattern="api/user/:username",handler="user",action={get='list', post='create', put='update', delete='remove'});

RESTful URLs

ColdBox allows for easy creation of RESTful URLs via URL mappings and extension detection. Natively ColdBox can detect any extension when supplied to an URI resource:

http://api.coldbox.org/rest/user/lui.json
http://api.coldbox.org/rest/user/lui.xml

It allows for the detection of such extensions, security around them and the ability to customize the extensions.

Ajax support

ColdBox supports all JavaScript frameworks that provide Ajax capabilities. It also provides an auto-marshalling function to render any object to the following formats natively: XML, WDDX, JSON, JSONP, TEXT, PDF, CUSTOM.

SOAP-Adobe Flex/Air Support

ColdBox offers support for creating, monitoring and developing SOAP web services and Flex/Air remote components. It allows for having one development paradigm for multiple GUI interfaces.

External links

References

This article is issued from Wikipedia - version of the Wednesday, February 10, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.