Class: SmartIoC::Scopes::Prototype
- Inherits:
-
Object
- Object
- SmartIoC::Scopes::Prototype
- Defined in:
- lib/smart_ioc/scopes/prototype.rb
Overview
Prototype scope instantiates new bean instance on each SmartIoC.get_bean call
Constant Summary collapse
- VALUE =
:prototype
Instance Method Summary collapse
- #clear ⇒ Object
- #force_clear ⇒ Object
-
#get_bean(bean_definition) ⇒ Object
Get new bean instance.
- #save_bean(klass, bean) ⇒ Object
Instance Method Details
#clear ⇒ Object
19 20 21 |
# File 'lib/smart_ioc/scopes/prototype.rb', line 19 def clear # do nothing end |
#force_clear ⇒ Object
23 24 25 |
# File 'lib/smart_ioc/scopes/prototype.rb', line 23 def force_clear # do nothing end |
#get_bean(bean_definition) ⇒ Object
Get new bean instance
8 9 10 |
# File 'lib/smart_ioc/scopes/prototype.rb', line 8 def get_bean(bean_definition) # do nothing end |
#save_bean(klass, bean) ⇒ Object
15 16 17 |
# File 'lib/smart_ioc/scopes/prototype.rb', line 15 def save_bean(klass, bean) # do nothing end |