WARN level Wirebox message The DSL dependency definition did not produce any resulting dependency

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

It appears you are trying to autowire a model called "cacheObject" but WireBox is unable to find an object with that alias.
Can you show us the DSL mapping and scan location portion of your wirebox.cfc file plus what your component annotations look like (assuming that's what you are using) from the component which is expecting the cacheObject dependency? Also, what are you expecting cacheObject to reference, and where is that located in your directory structure?

Thanks!

~Brad

Hi Brad
I had this in my some of my mappings...

map("cacheableArticleIBO")
      .to("components.bo.ArticleIBO")
      .initArg(name="gettableProperties",value="*")
      .initArg(name="settableProperties",value="*")
      .initArg(name="gettableClassProperties",value="totalPages,recordCount,totalRecordCount,recordsPerPage,currentPageNumber")
      .initArg(name="settableClassProperties",value="totalPages,recordCount,totalRecordCount,recordsPerPage,currentPageNumber")
      .initArg(name="cachedObject",value=true);

So i removed the last arguments as its optional. I still got the same
messages.

On the Cfc it corresponds to

<cffunction name="init" access="public"
returntype="components.bo.AbstractIBO" output="false">
    <cfargument name="gettableProperties" type="string" required="false"
default="*" hint="A comma delimited list of instance properties that
should be gettable" />
    <cfargument name="settableProperties" type="string" required="false"
default="*" hint="A comma delimited list of instance properties that
should be settable" />
    <cfargument name="gettableClassProperties" type="string"
required="false" default="*" hint="A comma delimited list of class
properties that should be gettable" />
    <cfargument name="settableClassProperties" type="string"
required="false" default="*" hint="A comma delimited list of class
properties that should be settable" />
    <cfargument name="cacheObject" type="boolean" required="false"
default="false" hint="Do we want to cache the contents of this
object" />

    <cfscript>
      super.init(gettableProperties, settableProperties,
gettableClassProperties, settableClassProperties,
arguments.cacheObject);
      return this;
    </cfscript>
  </cffunction>

So on half of my ibos i changed the isCached to be isBob and then i
started to get...
The DSL dependency definition:
{JAVACAST={null},NAME={isBob},DSL={model},REQUIRED={false},SCOPE={variables},VALUE={null},REF={null}}
did not produce any resulting dependency
for half and the original message for the other half.

The only bit of my wirebox cfc that talks about scan locations is
this...
// Package scan locations
                        scanLocations = [],

cacheObject is a boolean. it doesnt need any dependency injected into
it.
Any ideas?

Regards