Sha256: 9e0114b90d4561d17bc152a95bc1c68af21f07e984be3728f58190f3ed377d62

Contents?: true

Size: 523 Bytes

Versions: 29

Compression:

Stored size: 523 Bytes

Contents

# Prototype scope instantiates new bean instance on each SmartIoC.get_bean call
class SmartIoC::Scopes::Prototype
  VALUE = :prototype

  # Get new bean instance
  # @param bean_definition [BeanDefinition] bean definition
  # @returns nil
  def get_bean(bean_definition)
    # do nothing
  end

  # @param klass [Class] bean class
  # @param bean [Any Object] bean object
  # @returns nil
  def save_bean(klass, bean)
    # do nothing
  end

  def clear
    # do nothing
  end

  def force_clear
    # do nothing
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
smart_ioc-0.5.2 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.5.1 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.5.0 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.3.9 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.4.0 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.3.8 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.3.7 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.3.6 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.3.5 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.3.2 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.3.1 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.3.0 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.2.5 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.2.4 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.2.3 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.2.2 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.2.1 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.2.0 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.30 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.29 lib/smart_ioc/scopes/prototype.rb