Package | org.swizframework.processors |
Class | public class InjectProcessor |
Inheritance | InjectProcessor ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | metadataClass : Class [read-only]
| BaseMetadataProcessor | |
![]() | metadataNames : Array [read-only]
Name of metadata tags in which this processor is interested. | BaseMetadataProcessor | |
priority : int [override] [read-only]
| InjectProcessor |
Property | Defined By | ||
---|---|---|---|
![]() | beanFactory : IBeanFactory | BaseMetadataProcessor | |
injectByName : Object | InjectProcessor | ||
injectByProperty : Dictionary | InjectProcessor | ||
injectByType : Object | InjectProcessor | ||
logger : SwizLogger | InjectProcessor | ||
![]() | _metadataClass : Class | BaseMetadataProcessor | |
![]() | _metadataNames : Array | BaseMetadataProcessor | |
queueByName : Object | InjectProcessor | ||
queueByType : Array | InjectProcessor | ||
![]() | swiz : ISwiz | BaseMetadataProcessor |
Method | Defined By | ||
---|---|---|---|
InjectProcessor(metadataNames:Array = null)
Constructor
| InjectProcessor | ||
![]() |
Method used to set reference to parent Swiz instance. | BaseMetadataProcessor | |
[override]
Add Inject
| InjectProcessor | ||
![]() | setUpMetadataTags(metadataTags:Array, bean:Bean):void
Process the metadata tags for the provided Bean
so they are ready to use. | BaseMetadataProcessor | |
[override]
Remove Inject
| InjectProcessor | ||
![]() | tearDownMetadataTags(metadataTags:Array, bean:Bean):void
Process the metadata tags for the provided Bean
so they are ready to be cleaned up. | BaseMetadataProcessor |
Method | Defined By | ||
---|---|---|---|
Add Inject By Type
| InjectProcessor | ||
addPropertyBinding(destObject:Object, destPropName:String, sourceObject:Object, sourcePropertyChain:Array, twoWay:Boolean = false):void
Add Property Binding
| InjectProcessor | ||
![]() | BaseMetadataProcessor | ||
getBeanByName(name:String):Bean
Get Bean By Name
| InjectProcessor | ||
getBeanByType(type:Class):Bean
Get Bean By Type
| InjectProcessor | ||
getDestinationObject(destObject:Object, chainString:String):Object | InjectProcessor | ||
getDestinationPropertyName(injectTag:InjectMetadataTag):* | InjectProcessor | ||
Remove Inject By Name
| InjectProcessor | ||
Remove Inject By Property
| InjectProcessor | ||
Remove Inject By Type
| InjectProcessor | ||
Remove Property Binding
| InjectProcessor | ||
Set Destination Value
| InjectProcessor |
Constant | Defined By | ||
---|---|---|---|
AUTOWIRE : String = Autowire [static] | InjectProcessor | ||
INJECT : String = Inject [static] | InjectProcessor |
injectByName | property |
protected var injectByName:Object
injectByProperty | property |
protected var injectByProperty:Dictionary
injectByType | property |
protected var injectByType:Object
logger | property |
protected var logger:SwizLogger
priority | property |
priority:int
[read-only] [override]
public function get priority():int
queueByName | property |
protected var queueByName:Object
queueByType | property |
protected var queueByType:Array
InjectProcessor | () | Constructor |
public function InjectProcessor(metadataNames:Array = null)
Constructor
ParametersmetadataNames:Array (default = null )
|
addInjectByType | () | method |
protected function addInjectByType(injectTag:InjectMetadataTag, bean:Bean):void
Add Inject By Type
Parameters
injectTag:InjectMetadataTag | |
bean:Bean |
addPropertyBinding | () | method |
protected function addPropertyBinding(destObject:Object, destPropName:String, sourceObject:Object, sourcePropertyChain:Array, twoWay:Boolean = false):void
Add Property Binding
Parameters
destObject:Object | |
destPropName:String | |
sourceObject:Object | |
sourcePropertyChain:Array | |
twoWay:Boolean (default = false )
|
getBeanByName | () | method |
protected function getBeanByName(name:String):Bean
Get Bean By Name
Parameters
name:String |
Bean |
getBeanByType | () | method |
getDestinationObject | () | method |
protected function getDestinationObject(destObject:Object, chainString:String):Object
Parameters
destObject:Object | |
chainString:String |
Object |
getDestinationPropertyName | () | method |
protected function getDestinationPropertyName(injectTag:InjectMetadataTag):*
Parameters
injectTag:InjectMetadataTag |
* |
removeInjectByName | () | method |
protected function removeInjectByName(injectTag:InjectMetadataTag, bean:Bean):void
Remove Inject By Name
Parameters
injectTag:InjectMetadataTag | |
bean:Bean |
removeInjectByProperty | () | method |
protected function removeInjectByProperty(injectTag:InjectMetadataTag, bean:Bean):void
Remove Inject By Property
Parameters
injectTag:InjectMetadataTag | |
bean:Bean |
removeInjectByType | () | method |
protected function removeInjectByType(injectTag:InjectMetadataTag, bean:Bean):void
Remove Inject By Type
Parameters
injectTag:InjectMetadataTag | |
bean:Bean |
removePropertyBinding | () | method |
protected function removePropertyBinding(destination:Bean, source:Bean, injectTag:InjectMetadataTag):void
Remove Property Binding
Parameters
destination:Bean | |
source:Bean | |
injectTag:InjectMetadataTag |
setDestinationValue | () | method |
protected function setDestinationValue(injectTag:InjectMetadataTag, bean:Bean, value:*):void
Set Destination Value
Parameters
injectTag:InjectMetadataTag | |
bean:Bean | |
value:* |
setUpMetadataTag | () | method |
override public function setUpMetadataTag(metadataTag:IMetadataTag, bean:Bean):void
Add Inject
Parameters
metadataTag:IMetadataTag | |
bean:Bean |
tearDownMetadataTag | () | method |
override public function tearDownMetadataTag(metadataTag:IMetadataTag, bean:Bean):void
Remove Inject
Parameters
metadataTag:IMetadataTag | |
bean:Bean |
AUTOWIRE | Constant |
protected static const AUTOWIRE:String = Autowire
INJECT | Constant |
protected static const INJECT:String = Inject