Class: Seasar::Container::Deployer::InstanceSingletonDef

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

Overview

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

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) ⇒ InstanceSingletonDef

InstanceSingletonDefを構築します。

  • args

    1. Symbol name



27
28
29
# File 'lib/seasar/container/deployer/instance-singleton-def.rb', line 27

def initialize(name)
  @name = name
end

Instance Method Details

#create_component_deployer(component_def) ⇒ Object

SingletonComponentDeployerを生成します。

  • args

    1. Seasar::Container::ComponentDef component_def

  • return

    • Seasar::Container::Deployer::SingletonComponentDeployer



36
37
38
# File 'lib/seasar/container/deployer/instance-singleton-def.rb', line 36

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