Skip to content

Instantly share code, notes, and snippets.

@SinTeZWh1te
Created September 5, 2023 16:08
Show Gist options
  • Save SinTeZWh1te/e5049ca879ea172cfcfb42621cc0dbcf to your computer and use it in GitHub Desktop.
Save SinTeZWh1te/e5049ca879ea172cfcfb42621cc0dbcf to your computer and use it in GitHub Desktop.
package ru.test.bgbilling.kernel.scripts.events;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import ru.bitel.bgbilling.kernel.container.managed.ServerContext;
import ru.bitel.bgbilling.kernel.script.server.dev.EventScriptBase;
import ru.bitel.bgbilling.modules.inet.common.event.InetDeviceModifiedEvent;
import ru.bitel.bgbilling.server.util.Setup;
import ru.bitel.common.sql.ConnectionSet;
import java.sql.Connection;
/**
* @author sintezwh1te
*/
public class OnInetDeviceModifiedEvent
extends EventScriptBase<InetDeviceModifiedEvent> {
private static final Logger logger = LogManager.getLogger();
@Override
public void onEvent(InetDeviceModifiedEvent event, Setup setup, ConnectionSet connectionSet) throws Exception {
ServerContext serverContext = ServerContext.get();
Connection con = connectionSet.getConnection();
logger.info(event.getNewItem());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment