
 
 }
 </pre>
 
 <pre>
 public class Resources {
 
     &#064;PersistenceContext
     &#064;Produces
     &#064;UserDatabase
     private EntityManager em;
 
     public void close(@Disposes @UserDatabase EntityManager em) {
         em.close();
     }
 
 }
 </pre>
 
 <p>
 A disposer method allows the application to perform customized cleanup of an object returned by a
 <a href="Produces.html" title="annotation in jakarta.enterprise.inject">producer method or producer field</a>.
 </p>
 
 <p>
 A disposer met