Class: SmartIoC::Scopes::Prototype

Inherits:
Object
  • Object
show all
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

Instance Method Details

#clearObject



19
20
21
# File 'lib/smart_ioc/scopes/prototype.rb', line 19

def clear
  # do nothing
end

#force_clearObject



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

Parameters:



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

Parameters:

  • klass (Class)

    bean class

  • bean (Any Object)

    bean object



15
16
17
# File 'lib/smart_ioc/scopes/prototype.rb', line 15

def save_bean(klass, bean)
  # do nothing
end