Class: Seasar::Container::SimpleComponentDef
- Inherits:
-
ComponentDef
- Object
- ComponentDef
- Seasar::Container::SimpleComponentDef
- Defined in:
- lib/seasar/container/simple-component-def.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ComponentDef
#autobinding_def, #component_class, #component_name, #container, #instance_def, #onetime_proc, #procedure
Instance Method Summary collapse
-
#get_component ⇒ Object
(also: #get, #component, #[])
-
args - none - return - Object.
-
-
#initialize(component, component_name = nil) ⇒ SimpleComponentDef
constructor
-
args 1.
-
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
-
Object component
-
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_component ⇒ Object 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 |