Class CdiDemoConfig


  • public class CdiDemoConfig
    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 Detail

      • 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 @CdiDemo.
      • ds

        @Produces
        public DataSource ds
        Performs a JNDI lookup and makes available as an injectable bean
      • message

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

      • CdiDemoConfig

        public CdiDemoConfig()