Coldbox RC2, CF9 Ent, Win 7 - SP 1
Hi all
So i managed to replace lightwire with wirebox and all seems ok though
there is still quite a bit i dont understand in wirebox.
Switched on debug mode and there was quite a lot of these WARN level
messages related to the Binder.
WARN 01:18:35.592 PM coldbox.system.ioc.Builder
The DSL dependency definition:
{JAVACAST={null},NAME={cacheObject},DSL={model},REQUIRED={false},SCOPE={variables},VALUE={null},REF={null}}
did not produce any resulting dependency
I am assuming they are a WARN for a reason. Am i doing something
wrong?
The top config section of my Wirebox looks like this (pretty much the
default)
// The WireBox configuration structure DSL
wireBox = {
// Scope registration, automatically register a wirebox injector
instance on any CF scope
// By default it registeres itself on application scope
scopeRegistration = {
enabled = true,
scope = "application", // server, cluster, 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 to assign to the configured injector, this must
be an object reference
parentInjector = "",
// Register all event listeners here, they are created in the
specified order
listeners = [
// { class="", name="", properties={} }
]
};
My Coldbox config looks like this
wirebox = {
enabled = true,
singletonReload = false,
binder = "config.WireBox"
};
Also could we have a getBean method and as well as the getInstance
method? Would make code conversion easier. And will it be obtainable
via getPlugin("ioc")
Thanks