CDI @ApplicationScoped vs @RequestScoped and factory pattern
<p>It is better to create an application scoped factory or should it be request scoped when using factory pattern to create objects?</p>

<p>Application scoped beans are created once but uses memory space. Request scoped beans are created for each call but using memory space only at lifetime. Request scoped beans could created multiple times.</p>

<pre><code>@Named
@ApplicationScoped
public class SomeObjectFactory {
   public SomeObject createObject() {
      // do some stuff
   }
}
</code></pre>

<p>Are there any best practices?</p>