Exception: Seasar::Container::Exception::TooManyRegistrationRuntimeException

Inherits:
Exception::S2RuntimeException show all
Defined in:
lib/seasar/container/exception/toomany-registration-runtime-exception.rb

Overview

複数のコンポーネントがコンテナに見つかった場合にスローされる例外クラスです。

Instance Method Summary collapse

Constructor Details

#initialize(key, compnent_classes) ⇒ TooManyRegistrationRuntimeException

TooManyRegistrationRuntimeExceptionを構築します。

  • args

    1. Symbol key

    2. Array compnent_classes



30
31
32
33
# File 'lib/seasar/container/exception/toomany-registration-runtime-exception.rb', line 30

def initialize(key, compnent_classes)
  @key = key
  @component_classes = compnent_classes
end

Instance Method Details

#to_sObject

TooManyRegistrationRuntimeExceptionの文字列表現を返します。

  • args

    1. Seasar::Container::ComponentDef component_def

  • return

    • Seasar::Container::Deployer::PrototypeComponentDeployer



40
41
42
# File 'lib/seasar/container/exception/toomany-registration-runtime-exception.rb', line 40

def to_s
  return "too many registration for key : #{@key}, classes : #{@component_classes.inspect}"
end