Data Configuration Settings
/**
* Configure WireBox
*/
function configure(){
// The WireBox configuration structure DSL
wireBox = {
// LogBox Config: instantiation path
logBoxConfig : "wirebox.system.ioc.config.LogBox",
// CacheBox
cacheBox : { enabled : true },
// Scope registration: automatically put the injector in a CF scope on startup
// Default: application scope
scopeRegistration : {
enabled : true,
scope : "application", // server, session, application
key : "wireBox"
},
// DSL Namespace registrations
customDSL : {
// namespace : "mapping name"
},
// Custom Storage Scopes
customScopes : {
// annotationName : "mapping name"
},
// Package scan locations
scanLocations : [],
// Stop Recursions
stopRecursions : [],
// Parent Injector (object reference)
parentInjector : "",
// Register all event listeners (in execution order)
listeners : [
// { class : "", name : "", properties : {} }
],
// Automatically process all mappings on startup for metadata inspection.
// Default: false (lazy load for performance)
autoProcessMappings : false,
// Transient injection cache (per-request)
transientInjectionCache : true
}
// Map Bindings below
}logBoxConfig
cachebox
scopeRegistration
customDSL
customScopes
scanLocations
stopRecursions
parentInjector
listeners
transientInjectionCache
autoProcessMappings
Last updated
Was this helpful?