Blog

Curt Gratz

March 15, 2011

Spread the word


Share your thoughts

This video shows the basics of setting up a "Binder" with WireBox and how to setup mappings and alias using the WireBox DSL for super simple dependency injection that is easy to read.

WireBox Binder and Configuration Introduction... from Curt Gratz on Vimeo.

Again, this is not even scratching the surface of what the binder in WireBox can do. Below are some other simple changes you could make to the binder or ways you could do injection

So this line

.initArg(name="daoPath",dsl="id:daoPath"); Could change to .initArg(name="",ref="daoPath") //refpoints to an id directly

as one possible alternative, so if we wanted, we could remove the .initArg and do it via annotations

function init(required daoPath inject) or function init(required daoPath inject="id") or function init(required daoPath inject="id:daoPath")

So, as you can see, you can do your injections a variety of ways. Now, go, read the docs, and install WireBox and get wiring your model up the easy way.

Add Your Comment

Recent Entries

Introducing SocketBox, a new WebSocket library

Introducing SocketBox, a new WebSocket library

We’ve been working on a fun new library designed to make WebSockets easier for CFML (and BoxLang) developers. WebSockets are incredibly powerful for real-time applications and it’s honestly an area that CF developers have lagged far behind other languages in using.

Maria Jose Herrera
Maria Jose Herrera
October 10, 2024
Leveraging Real-Time Business Intelligence for Decision-Making

Leveraging Real-Time Business Intelligence for Decision-Making

By Edgardo Cabezas

In today’s fast-paced business world, data-driven decision-making is a strategic necessity. Companies must adapt to constant market changes and technological innovations to remain competitive. Real-Time Business Intelligence (RTBI) offers organizations immediate insights that affect critical areas such as sales, marketing, and operations, enabling swift, precise responses.

According to Gartner, over 33% of large organizations already use RTBI to optimize decis...

Cristobal Escobar
Cristobal Escobar
October 09, 2024