Comment on page

Programmatic Configuration

Instead of declaring data structures you can use the methods in the binder to configure WireBox for operation. All methods return an instance of the binder so you can concatenate methods.
Method Signature
The method used to configure the injector's CacheBox integration. Ignored in an application context
customListeners( list or array )
Append custom event listeners to the event manager.
The method used to register a new listener within the injector's event manager
The method used to tell the injector which LogBox configuration file to use for logging operations. Ignored in an application context
The method used to register a new DSL annotation namespace with a DSL Builder object
The method used to register a new custom scope in this injector
Register a CFC reference to be the parent injector for the configuring injector
A method used to remove one or a list (array) of scan locations from the configuration binder
Reset the entire configuration binder to factory defaults
A method used to add one or a list (array) of scan locations to the configuration binder. If a path already exists it will not be appended again.
This method is used to tell the Injector if it should auto-register itself in any ColdFusion scope automatically
A method used to register one or a list (array) of class paths the injector will look out for when discovering DI metadata. If these classes are found in the inheritance chain of an object, the injector will not process that inherited chain
logBoxConfig( "config.LogBox" )
.scanLocations( getAppMapping() & ".includes.models" )
.stopRecursions( "model.BaseService,model.BaseModel" )
.mapScope( "Ortus", "model.scopes.Ortus" );