Sha256: ede69cfe4b72dc9170a059f66da4dcdd38b62ebf1813e00df152e050fcb8fe02

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

# Prototype scope instantiates new bean instance on each 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

6 entries across 6 versions & 1 rubygems

Version Path
smart_ioc-0.1.19 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.18 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.17 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.16 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.14 lib/smart_ioc/scopes/prototype.rb
smart_ioc-0.1.13 lib/smart_ioc/scopes/prototype.rb