public class ApplicationState extends Object
Constructor and Description |
---|
ApplicationState(String name,
File path,
ExtendedDeploymentContext deploymentContext) |
Modifier and Type | Method and Description |
---|---|
void |
addProcessingContext(Class descriptor,
Object processingContext) |
void |
close()
Mark the
ApplicationState as inactive and do the final cleanup. |
ApplicationInfo |
getApplicationInfo() |
Set<String> |
getClassesChanged() |
ExtendedDeploymentContext |
getDeploymentContext() |
Map<String,Object> |
getDescriptorMetadata() |
List<EngineInfo> |
getEngineInfos() |
ModuleInfo |
getModuleInfo() |
<T> T |
getModuleMetaData(Class<T> metadataType) |
String |
getName() |
File |
getPath() |
<P> P |
getProcessingContext(Class descriptor,
Class<P> _class) |
Optional<AnnotationProcessorState> |
getProcessingState(Object processingContext) |
Set<String> |
getSniffers() |
String |
getTarget() |
boolean |
isActive() |
boolean |
isClassChanged(Class clazz)
Is the class modified in the IDE.
|
boolean |
isInactive() |
void |
preDestroy() |
void |
setApplicationClassLoader(ClassLoader applicationClassLoader) |
void |
setApplicationInfo(ApplicationInfo applicationInfo) |
void |
setEngineInfos(List<EngineInfo> engineInfos) |
void |
setModuleInfo(ModuleInfo moduleInfo) |
void |
setSniffers(Collection<? extends Sniffer> sniffers)
Sets the sniffers, If previous sniffers differs from current deployment
sniffers then moduleInfo, and engineInfos cache staled.
|
void |
setTarget(String target) |
void |
start(ExtendedDeploymentContext newContext,
Events events)
Starts the Application state for new deployment by copying the cached
metadata and properties to the new
DeploymentContext instance. |
void |
storeMetaData(ExtendedDeploymentContext deploymentContext)
Store the transient info before clean up of
DeploymentContext#postDeployClean |
public ApplicationState(String name, File path, ExtendedDeploymentContext deploymentContext)
public File getPath()
public String getName()
public String getTarget()
public void setTarget(String target)
public ExtendedDeploymentContext getDeploymentContext()
public List<EngineInfo> getEngineInfos()
public void setEngineInfos(List<EngineInfo> engineInfos)
public ModuleInfo getModuleInfo()
public void setModuleInfo(ModuleInfo moduleInfo)
public ApplicationInfo getApplicationInfo()
public void setApplicationInfo(ApplicationInfo applicationInfo)
public boolean isActive()
public boolean isInactive()
public void setSniffers(Collection<? extends Sniffer> sniffers)
sniffers
- public void start(ExtendedDeploymentContext newContext, Events events)
DeploymentContext
instance.newContext
- events
- public void setApplicationClassLoader(ClassLoader applicationClassLoader)
public Optional<AnnotationProcessorState> getProcessingState(Object processingContext)
public boolean isClassChanged(Class clazz)
clazz
- public void storeMetaData(ExtendedDeploymentContext deploymentContext)
DeploymentContext#postDeployClean
deploymentContext
- public <T> T getModuleMetaData(Class<T> metadataType)
public void close()
ApplicationState
as inactive and do the final cleanup.public void preDestroy()
Copyright © 2020. All rights reserved.