Class Pointcuts
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.util.Pointcuts
Defines pointcuts for AOP in the Telegram Forwarder Bot application.
This class contains pointcuts that match specific method executions related to handling Telegram events, executing commands, and sending messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPointcut for executing a command that handles a Telegram message.voidPointcut for executing theCallbackQueryCommand.execute(CallbackQuery, AbstractCommandCallbackDataDTO)method.voidPointcut for handling Telegram callback query events.voidPointcut for handling Telegram message events.voidPointcut for sending a media group.voidsendPost()Pointcut for sending a post message.
-
Constructor Details
-
Pointcuts
public Pointcuts()
-
-
Method Details
-
handleMessageEvent
public void handleMessageEvent()Pointcut for handling Telegram message events. Matches the execution of theTelegramEventHandler.handle(BotApiObject)method forMessageobjects. -
handleCallbackQueryEvent
public void handleCallbackQueryEvent()Pointcut for handling Telegram callback query events. Matches the execution of theTelegramEventHandler.handle(BotApiObject)method forCallbackQueryobjects. -
executeCallbackQueryCommand
public void executeCallbackQueryCommand()Pointcut for executing a command that handles a Telegram message. Matches the execution of theCallbackQueryCommand.execute(CallbackQuery, AbstractCommandCallbackDataDTO)method. -
sendPost
public void sendPost()Pointcut for sending a post message. Matches the execution of methods in the sender package that send a single message. -
sendMediaGroup
public void sendMediaGroup()Pointcut for sending a media group. Matches the execution of methods in the sender package that send a list of messages. -
executePostControlsCallbackQueryCommand
public void executePostControlsCallbackQueryCommand()Pointcut for executing theCallbackQueryCommand.execute(CallbackQuery, AbstractCommandCallbackDataDTO)method.
-