lucee.Component
coldbox.system.ioc.config.Mapping
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- I model a WireBox object mapping in all of its glory and splendour to create the object it represents
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
DIConstructorArguments
|
true
|
false
|
|
array
|
DIMethodArguments
|
true
|
false
|
|
array
|
DIProperties
|
true
|
false
|
|
array
|
DISetters
|
true
|
false
|
|
array
|
alias
Mapping Properties.
|
true
|
false
|
|
boolean
|
aspect
|
true
|
false
|
|
boolean
|
aspectAutoBinding
|
true
|
false
|
|
boolean
|
autoInit
|
true
|
false
|
|
any
|
autoWire
|
true
|
false
|
|
struct
|
cache
|
true
|
false
|
|
any
|
constructor
|
true
|
false
|
|
any
|
delegates
|
true
|
false
|
|
boolean
|
discovered
|
true
|
false
|
|
any
|
dsl
|
true
|
false
|
|
any
|
eagerInit
|
true
|
false
|
|
struct
|
extraAttributes
|
true
|
false
|
|
any
|
influenceClosure
|
true
|
false
|
|
any
|
lazyProperties
|
true
|
false
|
|
any
|
method
|
true
|
false
|
|
array
|
mixins
|
true
|
false
|
|
any
|
name
|
true
|
false
|
|
struct
|
objectMetadata
|
true
|
false
|
|
any
|
observedProperties
|
true
|
false
|
|
array
|
onDIComplete
|
true
|
false
|
|
any
|
path
|
true
|
false
|
|
array
|
providerMethods
|
true
|
false
|
|
any
|
scope
|
true
|
false
|
|
any
|
threadSafe
|
true
|
false
|
|
any
|
type
|
true
|
false
|
|
any
|
value
|
true
|
false
|
|
any
|
virtualInheritance
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init(any name)
Constructor. |
|
| Method Summary | |
|---|---|
Mapping
|
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. |
Mapping
|
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. |
Mapping
|
addDIProperty(any name, [any ref], [any dsl], [any value], [any javaCast], [any scope='variables'], [boolean required='true'], [any type='any'], [boolean delegate='false'], [any delegatePrefix=''], [any delegateSuffix=''], [any delegateExcludes='[runtime expression]'], [any delegateIncludes='[runtime expression]'])
Add a new property injection definition. |
Mapping
|
addDISetter(any name, [any ref], [any dsl], [any value], [any javaCast], [any argName])
Add a new DI Setter Definition. |
Mapping
|
addProviderMethod(any method, any mapping)
Add a new provider method to this mapping. |
string
|
getAlias()
|
string
|
getAspect()
|
string
|
getAspectAutoBinding()
|
string
|
getAutoInit()
|
string
|
getAutoWire()
|
string
|
getCache()
|
struct
|
getCacheProperties()
Get the cache properties struct. |
any
|
getComponentAnnotation(any key, [any defaultValue=''])
Get the component annotation metadata by key. |
string
|
getConstructor()
|
string
|
getDIConstructorArguments()
|
string
|
getDIMethodArguments()
|
string
|
getDIProperties()
|
string
|
getDISetters()
|
string
|
getDelegates()
|
string
|
getDiscovered()
|
string
|
getDsl()
|
string
|
getEagerInit()
|
string
|
getExtraAttributes()
|
string
|
getInfluenceClosure()
|
string
|
getLazyProperties()
|
struct
|
getMemento()
Get the mapping's memento structure. |
string
|
getMethod()
|
string
|
getMixins()
|
string
|
getName()
|
private struct
|
getNewDIDefinition()
Get a new DI definition structure. |
string
|
getObjectMetadata()
|
string
|
getObservedProperties()
|
string
|
getOnDIComplete()
|
string
|
getPath()
|
string
|
getProviderMethods()
|
string
|
getScope()
|
string
|
getThreadSafe()
|
string
|
getType()
|
string
|
getValue()
|
string
|
getVirtualInheritance()
|
boolean
|
hasDelegates()
Do we have any delegates declared explicitly. |
boolean
|
hasInfluenceClosure()
Verify if the influence closure has been seeded. |
boolean
|
isAspect()
Flag describing if this mapping is an AOP aspect or not. |
boolean
|
isAspectAutoBinding()
Is this mapping an auto aspect binding. |
boolean
|
isAutoInit()
Using auto init or not. |
boolean
|
isAutoWire()
Flag describing if you are using autowire or not as Boolean. |
boolean
|
isDSL()
Does this mapping have a DSL construction element or not as Boolean. |
boolean
|
isDiscovered()
Checks if this mapping has already been processed or not. |
boolean
|
isEagerInit()
Is this mapping eager initialized or not as Boolean. |
boolean
|
isTransient()
Verify if this is a transient object. |
boolean
|
isVirtualInheritance()
Checks if the mapping needs virtual inheritance or not. |
Mapping
|
process(any binder, any injector, [any metadata])
Process a mapping for metadata discovery and more. |
private Mapping
|
processAOPBinding(any binder, any metadata)
Process the AOP self binding aspects. |
private any
|
processComponentDelegates(any expression)
Process all the component delegates using WireBox delegate syntax expression. |
private Mapping
|
processDIMetadata(any binder, any metadata, [any dependencies='[runtime expression]'])
Process methods/properties for dependency injection. |
any
|
processFunctionMetadata(any metadata)
Process a function's metadata for DI Injection. |
Mapping
|
processMemento(any memento, [any excludes=''])
Process a mapping memento. |
private any
|
processPropertyMetadata(any metadata)
Process a property metadata for use in WireBox. |
any
|
setAlias(array alias)
|
any
|
setAspect(boolean aspect)
|
any
|
setAspectAutoBinding(boolean aspectAutoBinding)
|
any
|
setAutoInit(boolean autoInit)
|
any
|
setAutoWire(any autoWire)
|
any
|
setCache(struct cache)
|
any
|
setCacheProperties(any key, [any timeout=''], [any lastAccessTimeout=''], [any provider='default'])
Set the cache properties for this mapping. |
any
|
setConstructor(any constructor)
|
any
|
setDIConstructorArguments(any DIConstructorArguments)
|
any
|
setDIMethodArguments(array DIMethodArguments)
|
any
|
setDIProperties(array DIProperties)
|
any
|
setDISetters(array DISetters)
|
any
|
setDelegates(any delegates)
|
any
|
setDiscovered(boolean discovered)
|
any
|
setDsl(any dsl)
|
any
|
setEagerInit(any eagerInit)
|
any
|
setExtraAttributes(struct extraAttributes)
|
any
|
setInfluenceClosure(any influenceClosure)
|
any
|
setLazyProperties(any lazyProperties)
|
any
|
setMethod(any method)
|
any
|
setMixins(array mixins)
|
any
|
setName(any name)
|
any
|
setObjectMetadata(struct objectMetadata)
|
any
|
setObservedProperties(any observedProperties)
|
any
|
setOnDIComplete(array onDIComplete)
|
any
|
setPath(any path)
|
any
|
setProviderMethods(array providerMethods)
|
any
|
setScope(any scope)
|
any
|
setThreadSafe(any threadSafe)
|
any
|
setType(any type)
|
any
|
setValue(any value)
|
any
|
setVirtualInheritance(any virtualInheritance)
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
name - The mapping name| Property Detail |
|---|
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueMapping Properties
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - true| Method 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 argumentstype - The type of the argumentAdd 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 argumentstype - The type of the argumentAdd a new property injection definition
name - The name of the property 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 explicit value of the property, if passed.javaCast - The type of javaCast() to use on the value of the value. 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 DItype - The type of the propertydelegate - If the property is an object delegatedelegatePrefix - If the property has a delegate prefixdelegateSuffix - If the property has a delegate suffixdelegateExcludes - If the property has a delegate exclusion listdelegateIncludes - If the property has a delegate inclusion listAdd a new DI Setter Definition
name - The name of the setter to injectref - The reference mapping id this setter maps todsl - The construction dsl this setter references. If used, the name value must be used.value - The explicit value of the setter, if passed.javaCast - The type of javaCast() to use on the value of the value. 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 cache properties struct
Get the component annotation metadata by key
key - The annotation to look for in the componentdefaultValue - Default value to return if not foundGet the mapping's memento structure
Get a new DI definition structure
Do we have any delegates declared explicitly
Verify if the influence closure has been seeded.
Flag describing if this mapping is an AOP aspect or not
Is this mapping an auto aspect binding
Using auto init or not
Flag describing if you are using autowire or not as Boolean
Does this mapping have a DSL construction element or not as Boolean
Checks if this mapping has already been processed or not
Is this mapping eager initialized or not as Boolean
Verify if this is a transient object
Checks if the mapping needs virtual inheritance or not
Process a mapping for metadata discovery and more
binder - The binder requesting the processinginjector - The calling injector processing the mappingmetadata - The metadata of an a-la-carte processing, use instead of retrieving againProcess the AOP self binding aspects
binder - The binder requesting the processingmetadata - The metadata to processProcess all the component delegates using WireBox delegate syntax expression
expression - The CFC delegates annotation string expressionProcess methods/properties for dependency injection
binder - The binder requesting the processingmetadata - The metadata to processdependencies - The dependencies structureProcess a function's metadata for DI Injection
metadata - The Function metadata to processProcess a mapping memento. Basically takes in a struct of data to process the mapping's data with.
memento - The data memento to processexcludes - List of memento keys to not processProcess a property metadata for use in WireBox
metadataaliasaspectaspectAutoBindingautoInitautoWirecacheSet the cache properties for this mapping
key - Cache key to usetimeout - Object TimeoutlastAccessTimeout - Object Last Access Timeoutprovider - The Cache Provider to useconstructorDIConstructorArgumentsDIMethodArgumentsDIPropertiesDISettersdelegatesdiscovereddsleagerInitextraAttributesinfluenceClosurelazyPropertiesmethodmixinsnameobjectMetadataobservedPropertiesonDICompletepathproviderMethodsscopethreadSafetypevaluevirtualInheritance