Class IndexingComponent
java.lang.Object
ru.cg.webbpm.studio.platform.impl.indexing.IndexingComponent
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,Disposable
,ProjectComponent
,FileListener
,MetadataListener
@Component
public class IndexingComponent
extends Object
implements ProjectComponent, FileListener, MetadataListener
user: Ildar date: 18.04.15
-
Constructor Summary
ConstructorsConstructorDescriptionIndexingComponent
(FileBasedIndex fileBasedIndex, FileManager fileManager, ProgressManager progressManager, MetadataManager metadataManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
fileCreated
(FileEvent event) File system notificationvoid
fileDeleted
(FileEvent event) File system notificationvoid
fileModified
(FileEvent event) File system notificationvoid
fileMoved
(FileMoveEvent event) FileManager notificationvoid
fileRenamed
(FileRenameEvent event) FileManager notificationvoid
void
void
overflow()
FileManager notificationvoid
projectClosed
(boolean applicationClosed) вызывается после закрытия проектаvoid
вызывается после открытия проектаint
weight()
определяет порядок того, как для всех слушателей будет вызванProjectComponent.projectOpened()
}.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.studio.core.api.components.Disposable
destroy, dispose
Methods inherited from interface ru.cg.webbpm.studio.core.api.io.FileListener
beforeFileDeletion, beforeFileRenaming, failFileRenaming
Methods inherited from interface ru.cg.webbpm.studio.core.api.components.ProjectComponent
canCloseProject
-
Constructor Details
-
IndexingComponent
@Autowired public IndexingComponent(FileBasedIndex fileBasedIndex, FileManager fileManager, ProgressManager progressManager, MetadataManager metadataManager)
-
-
Method Details
-
projectOpened
public void projectOpened()Description copied from interface:ProjectComponent
вызывается после открытия проекта- Specified by:
projectOpened
in interfaceProjectComponent
-
projectClosed
public void projectClosed(boolean applicationClosed) Description copied from interface:ProjectComponent
вызывается после закрытия проекта- Specified by:
projectClosed
in interfaceProjectComponent
- Parameters:
applicationClosed
- Проект был закрыт при закрытии приложения
-
weight
public int weight()Description copied from interface:ProjectComponent
определяет порядок того, как для всех слушателей будет вызванProjectComponent.projectOpened()
}.- Specified by:
weight
in interfaceProjectComponent
-
fileCreated
Description copied from interface:FileListener
File system notification- Specified by:
fileCreated
in interfaceFileListener
-
fileDeleted
Description copied from interface:FileListener
File system notification- Specified by:
fileDeleted
in interfaceFileListener
-
fileModified
Description copied from interface:FileListener
File system notification- Specified by:
fileModified
in interfaceFileListener
-
fileMoved
Description copied from interface:FileListener
FileManager notification- Specified by:
fileMoved
in interfaceFileListener
-
fileRenamed
Description copied from interface:FileListener
FileManager notification- Specified by:
fileRenamed
in interfaceFileListener
-
overflow
public void overflow()Description copied from interface:FileListener
FileManager notification- Specified by:
overflow
in interfaceFileListener
-
metadataUpdated
public void metadataUpdated()- Specified by:
metadataUpdated
in interfaceMetadataListener
-
metadataUpdateFailed
public void metadataUpdateFailed()- Specified by:
metadataUpdateFailed
in interfaceMetadataListener
-