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 TypeMethodDescriptionvoid
Pointcut for executing a command that handles a Telegram message.void
Pointcut for executing theCallbackQueryCommand.execute(CallbackQuery, AbstractCommandCallbackDataDTO)
method.void
Pointcut for handling Telegram callback query events.void
Pointcut for handling Telegram message events.void
Pointcut for sending a media group.void
sendPost()
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 forMessage
objects. -
handleCallbackQueryEvent
public void handleCallbackQueryEvent()Pointcut for handling Telegram callback query events. Matches the execution of theTelegramEventHandler.handle(BotApiObject)
method forCallbackQuery
objects. -
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.
-