Persistence DSL
this.TYPES - Enum class (coldbox.system.ioc.Types)
this.SCOPES - Enum class (coldbox.system.ioc.Scopes)// CFC
map("FunkyObject")
.to("myapp.model.service.FunkyService")
.asSingleton();
mapPath("myapp.model.service.FunkyService")
.into(this.SCOPES.REQUEST);
// Java as NO SCOPE
map("buffer").toJava("java.lang.StringBuffer");
// RSS feed
map("googleNews")
.toRSS("http://news.google.com/news?output=rss")
.inCacheBox(timeout=60,lastAccessTimeout=15);
// Webservice
map("myWS")
.toWebservice("http://myapp.com/app.cfc?wsdl")
.into(this.SCOPES.APPLICATION);Last updated
Was this helpful?