com.foilen.infra.resource.example.failing.CrashingTimerEventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foilen-infra-resource-example-failing Show documentation
Show all versions of foilen-infra-resource-example-failing Show documentation
To test having a plugin that fails without affecting the rest of the system
The newest version!
/*
Foilen Infra Resource Example Failing
https://github.com/foilen/foilen-infra-resource-example-failing
Copyright (c) 2018-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.infra.resource.example.failing;
import com.foilen.infra.plugin.v1.core.context.ChangesContext;
import com.foilen.infra.plugin.v1.core.context.CommonServicesContext;
import com.foilen.infra.plugin.v1.core.context.TimerEventContext;
import com.foilen.infra.plugin.v1.core.eventhandler.TimerEventHandler;
public class CrashingTimerEventHandler implements TimerEventHandler {
@Override
public void timerHandler(CommonServicesContext services, ChangesContext changes, TimerEventContext event) {
throw new RuntimeException("FAILING PLUGIN");
}
}