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.1.28 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.27 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.26 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.25 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.24 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.23 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.22 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.21 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.20 lib/smart_ioc/scopes/prototype.rb