Class Compiler<T extends CompileListener>
java.lang.Object
ru.cg.webbpm.studio.subsystems.scripting.compile.impl.compiler.Compiler<T>
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,Disposable
,ProjectComponent
- Direct Known Subclasses:
JavaCompiler
,TypescriptCompiler
public abstract class Compiler<T extends CompileListener>
extends Object
implements ProjectComponent
- Author:
- Abdulin Ildar
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileManager
protected ProjectManager
protected CompileState
protected CompileStateReadWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
after
(CompileResult result) protected void
before
(CompileResult compileResult) compile()
protected abstract void
execute
(CompileResult result) abstract String
protected abstract Path
boolean
protected CompileState
void
projectClosed
(boolean applicationClosed) вызывается после закрытия проектаvoid
вызывается после открытия проектаprotected void
stop
(CompileResult compileResult) 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.components.ProjectComponent
canCloseProject
-
Field Details
-
fileManager
-
stateReadWriter
-
state
-
projectManager
-
-
Constructor Details
-
Compiler
-
-
Method Details
-
getHandlers
-
compile
-
initState
-
hasChanges
public boolean hasChanges() -
getLastResult
-
getSourcePath
-
before
-
stop
-
execute
-
after
-
getMetaFilename
-
projectOpened
public void projectOpened()Description copied from interface:ProjectComponent
вызывается после открытия проекта- Specified by:
projectOpened
in interfaceProjectComponent
-
weight
public int weight()Description copied from interface:ProjectComponent
определяет порядок того, как для всех слушателей будет вызванProjectComponent.projectOpened()
}.- Specified by:
weight
in interfaceProjectComponent
-
projectClosed
public void projectClosed(boolean applicationClosed) Description copied from interface:ProjectComponent
вызывается после закрытия проекта- Specified by:
projectClosed
in interfaceProjectComponent
- Parameters:
applicationClosed
- Проект был закрыт при закрытии приложения
-