/** * This is a factory method for this ConsequenceExceptionHandler configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param handler the actual consequence exception handler class to be used * * @return the actual type safe consequence exception handler configuration. */ public static ConsequenceExceptionHandlerOption get( final Class<? extends ConsequenceExceptionHandler> handler ) { return new ConsequenceExceptionHandlerOption( handler ); }
/** * This is a factory method for this ConsequenceExceptionHandler configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param handler the actual consequence exception handler class to be used * * @return the actual type safe consequence exception handler configuration. */ public static ConsequenceExceptionHandlerOption get( final Class<? extends ConsequenceExceptionHandler> handler ) { return new ConsequenceExceptionHandlerOption( handler ); }
/** * This is a factory method for this ConsequenceExceptionHandler configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param handler the actual consequence exception handler class to be used * * @return the actual type safe consequence exception handler configuration. */ public static ConsequenceExceptionHandlerOption get( final Class<? extends ConsequenceExceptionHandler> handler ) { return new ConsequenceExceptionHandlerOption( handler ); }