itle="class or interface in java.lang" class="external-link">IllegalStateException</a></code> - if called outside of the observer method invocation</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="addObserverMethod()">
<h3>addObserverMethod</h3>
<div class="member-signature"><span class="type-parameters">&lt;T&gt;</span>&nbsp;<span class="return-type"><a href="configurator/ObserverMethodConfigurator.html" title="interface in jakarta.enterprise.inject.spi.configurator">ObserverMethodConfigurator<