I’m trying to use Wirebox to inject an object into one of my handlers and I keep getting the subject error. Here is my property definition in the handler:
property name=“awardService” inject;
Here is the the full text of the Error message:
“ERROR”,“ROLLINGFILE”,“06/20/2013”,“09:17:36”,“coldbox.system.ioc.Builder”,“Target: application.handlers.ehAward -> DSL Definition: {JAVACAST={null},NAME={awardService},ARGNAME={},DSL={id:awardService},REQUIRED={false},SCOPE={variables},VALUE={null},REF={null}} did not produce any resulting dependency”
Here is my Wirebox.cfc:
component extends=“coldbox.system.ioc.config.Binder”
hint=“WireBox Binder configuration object” output=“false”
{
public void function configure()
output=“false”
{
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={} }
]
};
map(“awardService”).to(“BaseCFC.award.Award”).initArg(name=“coldbox”,value=getColdBox());
}
}
I tried things like taking out the init args in the cfc and the mapping, putting “id:awardService” in the property, etc. But I always get that error. Any help appreciated.
Jim