e>ObserverMethod</code></a> and then registers the
 <a href="ObserverMethod.html" title="interface in jakarta.enterprise.inject.spi"><code>ObserverMethod</code></a> with the container, thereby making it available for event
 notifications.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>observerMethod</code> - The custom observer method to add to the deployment</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html" t