Package | org.spicefactory.parsley.core.processor.impl |
Class | public class DefaultObjectProcessorConfig |
Inheritance | DefaultObjectProcessorConfig Object |
Implements | ObjectProcessorConfig |
prepareForNextTarget
is invoked.
Property | Defined By | ||
---|---|---|---|
destroyPhase : DestroyPhase [read-only]
The phase the processor should be invoked in when the target instance
gets removed from the Context or the Context gets destroyed. | DefaultObjectProcessorConfig | ||
initPhase : InitPhase [read-only]
The phase the processor should be invoked in during initialization. | DefaultObjectProcessorConfig | ||
processor : ObjectProcessor [read-only]
The processor configured by this instance. | DefaultObjectProcessorConfig | ||
target : Member [read-only]
The target member (property or method) to get processed. | DefaultObjectProcessorConfig |
Method | Defined By | ||
---|---|---|---|
DefaultObjectProcessorConfig(processor:ObjectProcessor, init:InitPhase, destroy:DestroyPhase, target:Member = null, singleton:Boolean = false, initializer:Function = null)
Creates a new instance. | DefaultObjectProcessorConfig | ||
Prepares a processor for the next target instance. | DefaultObjectProcessorConfig |
destroyPhase | property |
destroyPhase:DestroyPhase
[read-only] The phase the processor should be invoked in when the target instance gets removed from the Context or the Context gets destroyed.
public function get destroyPhase():DestroyPhase
initPhase | property |
initPhase:InitPhase
[read-only] The phase the processor should be invoked in during initialization.
public function get initPhase():InitPhase
processor | property |
processor:ObjectProcessor
[read-only] The processor configured by this instance.
public function get processor():ObjectProcessor
target | property |
target:Member
[read-only] The target member (property or method) to get processed. May be null if the processor does not explitly deal with just one member of the target instance. The majority of built-in processors have this property set.
public function get target():Member
DefaultObjectProcessorConfig | () | Constructor |
public function DefaultObjectProcessorConfig(processor:ObjectProcessor, init:InitPhase, destroy:DestroyPhase, target:Member = null, singleton:Boolean = false, initializer:Function = null)
Creates a new instance.
Parametersprocessor:ObjectProcessor — the processor configured by this instance
| |
init:InitPhase — the phase the processor should be invoked in during initialization
| |
destroy:DestroyPhase — the phase the processor should be invoked in when the target gets removed from the Context
| |
target:Member (default = null ) — the member (property or method - if any) to get processed
| |
singleton:Boolean (default = false ) — whether the processor gets applied to a singleton definition
| |
initializer:Function (default = null ) — the initializer to call before handing out a new processor
|
prepareForNextTarget | () | method |
public function prepareForNextTarget():ObjectProcessorConfig
Prepares a processor for the next target instance. This includes cloning the processor in case it is stateful and gets applied to a non-singleton object. Otherwise this instance may just return itself.
ReturnsObjectProcessorConfig — a processor for the next target instance
|