Class: Seasar::Container::TooManyRegistrationComponentDef
Instance Attribute Summary collapse
Attributes inherited from ComponentDef
#autobinding_def, #component_class, #component_name, #constructor, #container, #destructor, #instance_def, #onetime_proc
Instance Method Summary
collapse
#destroy, #init
#add_arg_def, #add_aspect_def, #add_property_def, #destroy, #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, #init
Constructor Details
25
26
27
28
|
# File 'lib/seasar/container/toomany-registration-component-def.rb', line 25
def initialize(key)
@key = key
@component_defs = []
end
|
Instance Attribute Details
#component_defs ⇒ Object
Returns the value of attribute component_defs.
29
30
31
|
# File 'lib/seasar/container/toomany-registration-component-def.rb', line 29
def component_defs
@component_defs
end
|
Instance Method Details
#add_component_def(component_def) ⇒ Object
- args
- Seasar::Container::ComponentDef component_def
- return
37
38
39
|
# File 'lib/seasar/container/toomany-registration-component-def.rb', line 37
def add_component_def(component_def)
@component_defs << component_def
end
|
#get_component ⇒ Object
Also known as:
get, component, []
#get_component_classes ⇒ Object
60
61
62
63
64
65
66
|
# File 'lib/seasar/container/toomany-registration-component-def.rb', line 60
def get_component_classes
component_classes = []
@component_defs.each {|component_def|
component_classes << component_def.component_class
}
return component_classes
end
|