/** * 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 ); }
e ); return (T) ConsequenceExceptionHandlerOption.get(handler); } else if ( EventProcessingOption.class.equals( option ) ) { return (T) getEventProcessingMode();
setCompositeKeyDepth(((CompositeKeyDepthOption) option).getDepth()); } else if ( option instanceof ConsequenceExceptionHandlerOption ) { setConsequenceExceptionHandler(((ConsequenceExceptionHandlerOption) option).getHandler().getName()); } else if ( option instanceof EventProcessingOption ) { setEventProcessingMode((EventProcessingOption) option);
/** * 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 ); }