 cdi-new-interceptor-binding --named Loggable --targetPackage org.jboss.forge.hol.petstore.util ;
 cdi-new-interceptor --named LoggingInterceptor --interceptorBinding org.jboss.forge.hol.petstore.util.Loggable --targetPackage org.jboss.forge.hol.petstore.util ;
 java-new-field --named logger --type org.apache.logging.log4j.Logger --generateGetter=false --generateSetter=false --updateToString=false --updateToString=false ;
-java-add-annotation --annotation javax.inject.Inject --onProperty logger ;
 
 #  Logging Producer
 #  ############

#  ############
java-new-class --named FacesProducer --targetPackage org.jboss.forge.hol.petstore.view.util ;
java-new-field --named facesContext --type javax.faces.context.FacesContext --generateGetter=false --generateSetter=false --updateToString=false ;
java-add-annotation --annotation javax.inject.Inject --onProperty facesContext ;

#  Exception
#  ############
cdi-new-interceptor-binding --named CatchException --targetPackage org.jboss.forge.hol.petstore.view.util ;
cdi-new-interceptor --named ExceptionInterceptor --interceptorBinding org.jboss.forge.hol.petstore.view.util.CatchException  --targetPackage org.jboss.forge.hol.petstore.view.util ;
java-new-field --named logger --type org.apache.logging.log4j.Logger --generateGetter=false --generateSetter=false --updateToString=false ;
java-add-annotation --annotation javax.inject.Inject --onProperty logger ;




#  Generates JSF beans and pages  #
#  #############################  #

scaffold-generate --targets org.jboss.forge.hol.petstore.model.Country ;
scaffold-generate --targets org.jboss.forge.hol.petstore.model.Customer ;
scaffold-generate --targets org.jboss.forge.hol.petstore.model.Category ;
scaffold-generate --targets org.jboss.forge.hol.petstore.model.Product ;
scaffold-generate --targets org.jboss.forge.hol.petstore.model.Item ;
scaffold-generate --targets org.jboss.forge.hol.petstore.model.OrderLine ;
scaffold-generate --targets org.jboss.forge.hol.petstore.model.PurchaseOrder ;

#  AbstractBean
#  ############
