Sha256: 0f72a80b898ba484fcbf60d6263f96bc89c08c0e1bfaeed67ec9e15beed476fb
Contents?: true
Size: 1.95 KB
Versions: 3
Compression:
Stored size: 1.95 KB
Contents
require 'smart_ioc/version' require 'forwardable' module SmartIoC autoload :Args, 'smart_ioc/args' autoload :BeanDefinition, 'smart_ioc/bean_definition' autoload :BeanDefinitionsStorage, 'smart_ioc/bean_definitions_storage' autoload :BeanDependency, 'smart_ioc/bean_dependency' autoload :BeanFactory, 'smart_ioc/bean_factory' autoload :BeanFileLoader, 'smart_ioc/bean_file_loader' autoload :BeanLocations, 'smart_ioc/bean_locations' autoload :BeanLocator, 'smart_ioc/bean_locator' autoload :Container, 'smart_ioc/container' autoload :ExtraPackageContexts, 'smart_ioc/extra_package_contexts' autoload :InjectMetadata, 'smart_ioc/inject_metadata' autoload :Iocify, 'smart_ioc/iocify' autoload :Scopes, 'smart_ioc/scopes' module Scopes autoload :Prototype, 'smart_ioc/scopes/prototype' autoload :Singleton, 'smart_ioc/scopes/singleton' autoload :Request, 'smart_ioc/scopes/request' end module Errors require 'smart_ioc/errors' end class << self # @param package_name [String or Symbol] package name for bean definitions # @param dir [String] absolute path with bean definitions # @return nil def find_package_beans(package_name, dir) bean_locator = SmartIoC::BeanLocator.new bean_locator.locate_beans(package_name.to_sym, dir) nil end # Load all beans (usually required for production env) def load_all_beans BeanLocations.load_all end # Full clear of data (mostly for tests) def clear BeanLocations.clear Container.clear end def container Container.get_instance end extend Forwardable def_delegators :container, :register_bean, :get_bean_definition_by_class, :set_extra_context_for_package, :get_bean, :clear_scopes, :force_clear_scopes, :set_load_proc end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smart_ioc-0.1.24 | lib/smart_ioc.rb |
smart_ioc-0.1.23 | lib/smart_ioc.rb |
smart_ioc-0.1.22 | lib/smart_ioc.rb |