Class ResettingHandler<L,R extends FactoryBase<L,R>>
- java.lang.Object
-
- io.github.factoryfx.factory.exception.ResettingHandler<L,R>
-
- All Implemented Interfaces:
FactoryExceptionHandler<L,R>
public class ResettingHandler<L,R extends FactoryBase<L,R>> extends java.lang.Object implements FactoryExceptionHandler<L,R>
reset to the previous state after an exception during update (Some memory/resource leaks can't be fixed in the framework e.g if the factory close code throw an exception again or is wrong implemented)
-
-
Constructor Summary
Constructors Constructor Description ResettingHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyException(java.lang.Exception e, FactoryBase<?,?> factory, ExceptionResponseAction<L,R> exceptionResponse)voidstartException(java.lang.Exception e, FactoryBase<?,?> factory, ExceptionResponseAction<L,R> exceptionResponse)voidupdateException(java.lang.Exception e, FactoryBase<?,?> factory, ExceptionResponseAction<L,R> exceptionResponse)
-
-
-
Method Detail
-
updateException
public void updateException(java.lang.Exception e, FactoryBase<?,?> factory, ExceptionResponseAction<L,R> exceptionResponse)- Specified by:
updateExceptionin interfaceFactoryExceptionHandler<L,R extends FactoryBase<L,R>>
-
startException
public void startException(java.lang.Exception e, FactoryBase<?,?> factory, ExceptionResponseAction<L,R> exceptionResponse)- Specified by:
startExceptionin interfaceFactoryExceptionHandler<L,R extends FactoryBase<L,R>>
-
destroyException
public void destroyException(java.lang.Exception e, FactoryBase<?,?> factory, ExceptionResponseAction<L,R> exceptionResponse)- Specified by:
destroyExceptionin interfaceFactoryExceptionHandler<L,R extends FactoryBase<L,R>>
-
-