Note Please note that you can concatenate more than one of these methods calls to dictate multiple constructor arguments, setter methods, cf properties, and more.
constructor(constructor)
init()
method, that will be used as the constructornoInit()
threadSafe()
notThreadSafe()
noAutowire()
parent(alias)
initArg([name],[ref],[dsl],[value],[javaCast])
name
: The name of the constructor argument. Not used for Java or Webservice construction
ref
: The mapping reference id this constructor is mapped to. E.G. ref='MyFunkyEspresso'
dsl
: The construction dsl that will be used to construct this constructor argument
value
: The constant value you can use instead of a dsl or ref for this constructor argument
javaCast
: If using a java object, you can cast the value of this constructor argumentinitWith()
init()
call of the mapped object. WireBox will then use that argument collection to initialize the mapped object. Note, initWith()
only accepts arguments which can be evaluated at the time the binder is parsed such as static values, or binder properties. To specify mapping IDs or DSLs, use `initArg()methodArg([name],[ref],[dsl],[value],[javaCast])
name
: The name of the method argument. Not used for Java or Webservice construction
ref
: The mapping reference id this method argument is mapped to. E.G. ref='MyFunkyEspresso'
dsl
: The construction dsl that will be used to construct this method argument
value
: The constant value you can use instead of a dsl or ref for this method argument
javaCast
: If using a java object, you can cast the value of this method argumentproperty([name],[ref],[dsl],[value],[javaCast],[scope])
name
: The name of the property value to inject. Not used for Java or Webservice construction
ref
: The mapping reference id this property is mapped to. E.G. ref='MyFunkyEspresso'
dsl
: The construction dsl that will be used to construct this property argument
value
: The constant value you can use instead of a dsl or ref for this property argument
javaCast
: If using a java object, you can cast the value of this property argument
scope
: The scope inside the CFC this property will be injected too. The default scope is the variables
scope.setter([name],[ref],[dsl],[value],[javaCast],[argName])
setXXX
where XXX
is the name of the mapped object.
name
: The name of the setter. Not used for Java or Webservice construction
ref
: The mapping reference id this setter is mapped to. E.G. ref='MyFunkyEspresso'
dsl
: The construction dsl that will be used to construct this setter dependency
value
: The constant value you can use instead of a dsl or ref for this setter dependency
javaCast
: If using a java object, you can cast the value of this setter dependency
argName
: The name of the argument to use, if not passed, we default it to the setter name.mixins(udfIncludeList)
providerMethod(method,mapping)
virtualInheritance(Mapping)
extraAttributes(struct)
withInfluence( closure/UDF )