Class EventPublisherAspect
java.lang.Object
com.github._1c_syntax.bsl.languageserver.aop.EventPublisherAspect
Аспект подсистемы событий.
Каждый advice перехватывает какой-либо метод из недр продукта и генерирует соответствующее событие с помощью Spring Events.
Аспект является синглтоном AspectJ CTW — один экземпляр на всю JVM, независимо от количества
Spring-контекстов. Регистрация publisher-ов выполняется через EventPublisherAspectRegistration,
по одному на каждый Spring-контекст. При закрытии контекста происходит отмена регистрации,
и аспект автоматически переключается на publisher следующего зарегистрированного контекста.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeWorkspaceRemoved(JoinPoint joinPoint, WorkspaceFolder workspaceFolder) voiddocumentContextRebuild(JoinPoint joinPoint) voidvoidlanguageServerConfigurationUpdated(JoinPoint joinPoint) voidlanguageServerInitialize(JoinPoint joinPoint, InitializeParams initializeParams) voidserverContextAddDocument(JoinPoint joinPoint, URI uri) voidserverContextCloseDocument(JoinPoint joinPoint, DocumentContext documentContext) voidserverContextPopulated(JoinPoint joinPoint, Collection<File> files) voidserverContextRemoveDocument(JoinPoint joinPoint, URI uri) voidworkspaceAdded(JoinPoint joinPoint, URI workspaceUri, ServerContext serverContext) voidworkspaceRemoved(JoinPoint joinPoint, WorkspaceFolder workspaceFolder)
-
Constructor Details
-
EventPublisherAspect
public EventPublisherAspect()
-
-
Method Details
-
languageServerConfigurationUpdated
-
globalLanguageServerConfigurationUpdated
-
documentContextRebuild
-
serverContextPopulated
-
serverContextAddDocument
-
serverContextRemoveDocument
-
serverContextCloseDocument
-
languageServerInitialize
-
workspaceAdded
-
beforeWorkspaceRemoved
-
workspaceRemoved
-