Class: Seasar::Container::Deployer::PrototypeComponentDeployer
- Inherits:
-
AbstractComponentDeployer
- Object
- AbstractComponentDeployer
- Seasar::Container::Deployer::PrototypeComponentDeployer
- Defined in:
- lib/seasar/container/deployer/prototype-component-deployer.rb
Overview
コンポーネントのインスタンス管理をPrototypeとするDeployerクラスです。
Instance Method Summary collapse
-
#deploy ⇒ Object
コンポーネントを構築します。 - args - none - return - Object.
-
#initialize(component_def) ⇒ PrototypeComponentDeployer
constructor
PrototypeComponentDeployerを構築します。 - args 1.
Methods inherited from AbstractComponentDeployer
#destroy, #init, #setup_assembler
Constructor Details
#initialize(component_def) ⇒ PrototypeComponentDeployer
PrototypeComponentDeployerを構築します。
-
args
-
Seasar::Container::ComponentDef component_def
-
28 29 30 31 |
# File 'lib/seasar/container/deployer/prototype-component-deployer.rb', line 28 def initialize(component_def) super @instantiating = false end |
Instance Method Details
#deploy ⇒ Object
コンポーネントを構築します。
-
args
-
none
-
-
return
-
Object
-
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/seasar/container/deployer/prototype-component-deployer.rb', line 38 def deploy if @instantiating raise Seasar::Container::Exception::CyclicReferenceRuntimeException.new(@component_def.component_class) end @instantiating = true component = @constructor_assembler.assemble @instantiating = false @property_assembler.assemble(component) return component end |