Created
September 5, 2023 16:08
-
-
Save SinTeZWh1te/e5049ca879ea172cfcfb42621cc0dbcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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