lucee.Component coldbox.system.ioc.config.Mapping
I model a WireBox object mapping in all of its glory and splendour
Constructor Summary | |
---|---|
init(any name)
Constructor. |
Method Summary | |
---|---|
any
|
addDIConstructorArgument([any name], [any ref], [any dsl], [any value], [any javaCast], [any required='true'], [any type='any'])
Add a new constructor argument to this mapping. |
any
|
addDIMethodArgument([any name], [any ref], [any dsl], [any value], [any javaCast], [any required='true'], [any type='any'])
Add a new method argument to this mapping. |
any
|
addDIProperty(any name, [any ref], [any dsl], [any value], [any javaCast], [any scope='variables'], [any required='true'], [any type='any'])
Add a new cfproperty definition. |
any
|
addDISetter(any name, [any ref], [any dsl], [any value], [any javaCast], [any argName])
Add a new DI setter definition. |
any
|
addProviderMethod(any method, any mapping)
Add a new provider method to this mapping. |
any
|
getAlias()
Get the mapping aliases array. |
any
|
getCacheProperties()
Get this mappings cache properties structure. |
any
|
getConstructor()
Get the name of the constructor method. |
any
|
getDIConstructorArguments()
Get all the constructor argument definitions array. |
private any<coldbox.system.ioc.config.structure>
|
getDIDefinition()
Get a new DI definition structure. |
any
|
getDIMethodArguments()
Get all the method argument definitions array. |
any
|
getDIProperties()
Get all the DI property definitions array. |
any
|
getDISetters()
Get all the DI setter definitions array. |
any
|
getDSL()
Get the construction DSL. |
any
|
getExtraAttributes()
Get the mapping's extra attributes. |
any
|
getInfluenceClosure()
Get the influence closure. |
any
|
getMemento()
Get the instance memento structure. |
any
|
getMethod()
Get the method that this mapping needs to execute from a mapping factory. |
any
|
getMixins()
Get the mixins array list. |
any
|
getName()
Get the mapping name. |
any
|
getObjectMetadata()
Get the internal mapping metadata of the object. |
any
|
getOnDIComplete()
Get all the DI complete methods array. |
any
|
getPath()
Get the path to this mapping. |
any
|
getProviderMethods()
Get the discovered provider methods array. |
any
|
getScope()
Get the visibility scope. |
any
|
getThreadSafe()
Get the thread safety for wiring bit. |
any
|
getType()
Get the mapping type. |
any
|
getValue()
Get the mapping value (if any). |
any
|
getVirtualInheritance()
Get the virtual inheritance mapping. |
any
|
isAspect()
Flag describing if this mapping is an AOP aspect or not. |
any
|
isAspectAutoBinding()
Is this mapping an auto aspect binding. |
any
|
isAutoInit()
Using auto init of mapping target or not as boolean. |
any
|
isAutowire()
Flag describing if you are using autowire or not as Boolean. |
any
|
isDiscovered()
Checks if this mapping has already been processed or not. |
any
|
isDSL()
Does this mapping have a DSL construction element or not as Boolean. |
any
|
isEagerInit()
Is this mapping eager initialized or not as Boolean. |
boolean
|
isVirtualInheritance()
Checks if the mapping needs virtual inheritace or not. |
any
|
process(any binder, any injector, [any metadata])
Process a mapping for metadata discovery and more. |
private any
|
processAOPBinding(any binder, any metadata)
Process the AOP self binding aspects. |
private void
|
processDIMetadata(any binder, any metadata, [any dependencies='[runtime expression]'])
Process methods/properties for dependency injection. |
any
|
processMemento(any memento, [any excludes=''])
Process a mapping memento. |
any
|
setAlias(any alias)
Set the mapping aliases. |
any
|
setAspect(any aspect)
Set aspect property. |
any
|
setAspectAutoBinding(any autoBinding)
Set the aspect auto binding bit. |
any
|
setAutoInit(any autoInit)
Set autoInit property. |
any
|
setAutowire(any autowire)
Set autowire property. |
any
|
setCacheProperties(any key, [any timeout=''], [any lastAccessTimeout=''], [any provider='default'])
Set the cache properties for this mapping (Needs cachebox integration). |
any
|
setConstructor(any constructor)
Override the name of the constructor method. |
any
|
setDiscovered()
Flag this mapping as discovered. |
any
|
setDSL(any dsl)
Set the construction DSL. |
any
|
setEagerInit(any eagerInit)
Set the eager init flag. |
any
|
setExtraAttributes(any data)
Set the mapping's extra attributes. |
any
|
setInfluenceClosure(any influenceClosure)
Set the influence closure. |
any
|
setMethod(any method)
Set the method used for getting this mapping from a factory. |
any
|
setMixins(any mixins)
Set the mixins array list. |
any
|
setName(any name)
Name the mapping. |
any
|
setObjectMetadata(any metadata)
Set the mappings CFC target metadata. |
any
|
setOnDIComplete(any DIComplete)
Set the DI Complete method array. |
any
|
setPath(any path)
Set the path to this mapping. |
any
|
setScope(any scope)
Set the visibility scope. |
any
|
setThreadSafe(boolean threadSafe)
Set the thread safety for wiring bit. |
any
|
setType(any type)
Set the mapping type. |
any
|
setValue(any value)
Set the mapping value. |
any
|
setVirtualInheritance(any mapping)
Set the virtual inheritance mapping. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
name
- The mapping nameMethod Detail |
---|
Add a new constructor argument to this mapping
name
- The name of the constructor argument (Not used for: JAVA,WEBSERVICE)ref
- The reference mapping id this constructor argument maps todsl
- The construction dsl this argument references. If used, the name value must be used.value
- The explicit value of the constructor argument, if passed.javaCast
- The type of javaCast() to use on the value of the argument. Only used if using dsl or ref argumentsrequired
- If the argument is required or not, by default we assume required DI arguments.type
- The type of the argument.Add a new method argument to this mapping
name
- The name of the method argument (Not used for: JAVA,WEBSERVICE)ref
- The reference mapping id this method argument maps todsl
- The construction dsl this argument references. If used, the name value must be used.value
- The explicit value of the method argument, if passed.javaCast
- The type of javaCast() to use on the value of the argument. Only used if using dsl or ref argumentsrequired
- If the argument is required or not, by default we assume required DI arguments.type
- The type of the argument.Add a new cfproperty definition
name
- The name of the cfproperty to injectref
- The reference mapping id this property maps todsl
- The construction dsl this property references. If used, the name value must be used.value
- The value of the property, if passed.javaCast
- The type of javaCast() to use on the value of the property. Only used if using dsl or ref argumentsscope
- The scope in the CFC to inject the property to. By default it will inject it to the variables scoperequired
- If the property is required or not, by default we assume required DI properties.type
- The type of the property.Add a new DI setter definition
name
- The name of the setter method.ref
- The reference mapping id this setter argument maps todsl
- The construction dsl this argument references. If used, the name value must be used.value
- The value of the setter argument, if passed.javaCast
- The type of javaCast() to use on the value of the argument. Only used if using dsl or ref argumentsargName
- The name of the argument to use, if not passed, we default it to the setter nameAdd a new provider method to this mapping
method
- The provided method to override as a providermapping
- The mapping to provide via the selected methodGet the mapping aliases array
Get this mappings cache properties structure
Get the name of the constructor method
Get all the constructor argument definitions array
Get a new DI definition structure
Get all the method argument definitions array
Get all the DI property definitions array
Get all the DI setter definitions array
Get the construction DSL
Get the mapping's extra attributes
Get the influence closure. Empty string if not exists
Get the instance memento structure
Get the method that this mapping needs to execute from a mapping factory
Get the mixins array list
Get the mapping name
Get the internal mapping metadata of the object
Get all the DI complete methods array
Get the path to this mapping
Get the discovered provider methods array
Get the visibility scope
Get the thread safety for wiring bit
Get the mapping type
Get the mapping value (if any)
Get the virtual inheritance mapping
Flag describing if this mapping is an AOP aspect or not
Is this mapping an auto aspect binding
Using auto init of mapping target or not as boolean
Flag describing if you are using autowire or not as Boolean
Checks if this mapping has already been processed or not
Does this mapping have a DSL construction element or not as Boolean
Is this mapping eager initialized or not as Boolean
Checks if the mapping needs virtual inheritace or not
Process a mapping for metadata discovery and more
binder
- The binder requesting the processinginjector
- The calling injector processing the mapppingmetadata
- The metadata of an a-la-carte processing, use instead of retrieveing againProcess the AOP self binding aspects
binder
- The binder requesting the processingmetadata
- The metadata to processProcess methods/properties for dependency injection
binder
- The binder requesting the processingmetadata
- The metadata to processdependencies
- The dependencies structureProcess a mapping memento
memento
- The data memento to processexcludes
- List of instance's memento keys to not processSet the mapping aliases
alias
Set aspect property
aspect
Set the aspect auto binding bit
autoBinding
Set autoInit property
autoInit
Set autowire property
autowire
Set the cache properties for this mapping (Needs cachebox integration)
key
- Cache key to usetimeout
- Object TimeoutlastAccessTimeout
- Object Last Access Timeoutprovider
- The Cache Provider to useOverride the name of the constructor method
constructor
Flag this mapping as discovered
Set the construction DSL
dsl
Set the eager init flag
eagerInit
- Set the eager init flagSet the mapping's extra attributes
data
Set the influence closure.
influenceClosure
Set the method used for getting this mapping from a factory
method
Set the mixins array list
mixins
Name the mapping
name
Set the mappings CFC target metadata
metadata
- Target CFC metadataSet the DI Complete method array
DIComplete
- The method array to setSet the path to this mapping
path
Set the visibility scope
scope
Set the thread safety for wiring bit
threadSafe
Set the mapping type
type
Set the mapping value
value
Set the virtual inheritance mapping
mapping