Class: Seasar::Container::SimpleComponentDef

Inherits:
ComponentDef show all
Defined in:
lib/seasar/container/simple-component-def.rb

Instance Attribute Summary

Attributes inherited from ComponentDef

#autobinding_def, #component_class, #component_name, #container, #instance_def, #onetime_proc, #procedure

Instance Method Summary collapse

Methods inherited from ComponentDef

#add_arg_def, #add_aspect_def, #add_property_def, #get_arg_def, #get_arg_def_size, #get_arg_defs, #get_aspect_def, #get_aspect_def_size, #get_component_deployer, #get_concreate_class, #get_property_def, #get_property_def_size, #get_property_defs, #has_property_def

Constructor Details

#initialize(component, component_name = nil) ⇒ SimpleComponentDef

  • args

    1. Object component

    2. Symbol|String name



26
27
28
29
# File 'lib/seasar/container/simple-component-def.rb', line 26

def initialize(component, component_name = nil)
  super(component.class, component_name)
  @component = component
end

Instance Method Details

#get_componentObject Also known as: get, component, []

  • args

    • none

  • return

    • Object



37
38
39
# File 'lib/seasar/container/simple-component-def.rb', line 37

def get_component
  return @component
end