Class: Seasar::Container::Deployer::InstancePrototypeDef

Inherits:
InstanceDef
  • Object
show all
Defined in:
lib/seasar/container/deployer/instance-prototype-def.rb

Overview

インスタンスの管理をPrototypeと定義するクラスです。

Constant Summary

Constants inherited from InstanceDef

InstanceDef::OUTER_NAME, InstanceDef::PROTOTYPE_NAME, InstanceDef::SINGLETON_NAME

Instance Attribute Summary

Attributes inherited from InstanceDef

#name

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ InstancePrototypeDef

InstancePrototypeDefを構築します。

  • args

    1. Symbol name



29
30
31
# File 'lib/seasar/container/deployer/instance-prototype-def.rb', line 29

def initialize(name)
  @name = name
end

Instance Method Details

#create_component_deployer(component_def) ⇒ Object

PrototypeComponentDeployerを生成します。

  • args

    1. Seasar::Container::ComponentDef component_def

  • return

    • Seasar::Container::Deployer::PrototypeComponentDeployer



38
39
40
# File 'lib/seasar/container/deployer/instance-prototype-def.rb', line 38

def create_component_deployer(component_def)
  return PrototypeComponentDeployer.new(component_def)
end