Class SchedulerResources


  • public class SchedulerResources
    extends Object
    This class implements a set of CDI producer fields and methods that are used to inject resources into beans within the application.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      Scheduler cook
      Gets a CookEJB for any bean injecting a Scheduler
      DataSource ds
      Gets a DataSource from the JNDI tree based on a JNDI name and produces it for any bean injecting a DataSource qualified with @JndiDemo
      EntityManager em
      Gets a persistence context based on the persistence unit name and produces it for any bean injecting an EntityManager qualified with a @JndiDemo.
      String message
      A String for any bean injecting a String qualified by @JndiDemo annotation.
    • Field Detail

      • ds

        @Produces
        public DataSource ds
        Gets a DataSource from the JNDI tree based on a JNDI name and produces it for any bean injecting a DataSource qualified with @JndiDemo
      • em

        @Produces
        public EntityManager em
        Gets a persistence context based on the persistence unit name and produces it for any bean injecting an EntityManager qualified with a @JndiDemo.
      • message

        @Produces
        public String message
        A String for any bean injecting a String qualified by @JndiDemo annotation.
    • Constructor Detail

      • SchedulerResources

        public SchedulerResources()