package pl.dawidstepien.jee.examples;

import java.text.SimpleDateFormat;

import javax.enterprise.inject.Produces;
import javax.inject.Inject;

public class SimpleDateFormatProducer {

  @Inject @SimpleDatePattern
  private String pattern;

  @Produces
  public SimpleDateFormat produceSimpleDateFormat() {
    return new SimpleDateFormat(pattern);
  }
}

@@ -67,16 +67,90 @@
 Format;%0A
+import java.util.logging.Logger;%0A%0Aimport javax.enterprise.inject.Disposes;
 %0Aimport 
@@ -253,16 +253,44 @@
 ucer %7B%0A%0A
+  @Inject%0A  Logger logger;%0A%0A
   @Injec
@@ -448,11 +448,145 @@
 rn);%0A  %7D
+%0A%0A  private void objectCreated(@Disposes SimpleDateFormat simpleDateFormat) %7B%0A    logger.info(%22SimpleDateFormat object created.%22);%0A  %7D
 %0A%7D%0A

Add example of a disposer method