[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Handling contexts in error

adrian@jboss.org do-not-reply at jboss.com
Thu Feb 21 06:47:07 EST 2008


"julien at jboss.com" wrote : Actually the way I am using it is rather dynamic and it creates metadata at runtime using the Kernel metadata stuff and does not use XML or Annotations.
  | 

That's fine. There would just be a BeanMetaData::getErrorHandlingMode() 
which would get copied into a ControllerContext::setErrorHandlingMode(ErrorHandlingMode)


  | public enum ErrorHandlingMode
  | {
  |    DISCARD, // The default as now
  |    MANUAL, // What you want
  |    MANUAL_CHECKED, // As manual but RuntimeExceptions, Errors lead to a DISCARD
  | }
  | 

That's why I called it "pseudo xml" :-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131036#4131036

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131036



More information about the jboss-dev-forums mailing list