Package io.jmix.core.impl
Class TempDirProcessor
java.lang.Object
io.jmix.core.impl.TempDirProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.context.EnvironmentAware,org.springframework.core.Ordered,org.springframework.core.PriorityOrdered
public class TempDirProcessor
extends Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.EnvironmentAware, org.springframework.core.PriorityOrdered
Checks on startup that the
jmix.core.temp-dir directory can be written to.
If the directory is not writable and the property has the default value from the core module, the property is
replaced with a directory under java.io.tmpdir. If the property is set explicitly, it is kept as is and a
warning is logged.
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()protected booleanReturns true if the property value comes from the core module'smodule.properties, that is, the application does not set it.protected booleanisWritable(String dir) voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) voidsetEnvironment(org.springframework.core.env.Environment environment)
-
Constructor Details
-
TempDirProcessor
public TempDirProcessor()
-
-
Method Details
-
postProcessBeanFactory
@NullMarked public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-
isWritable
-
isDefaultValue
@NullMarked protected boolean isDefaultValue()Returns true if the property value comes from the core module'smodule.properties, that is, the application does not set it. -
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setEnvironment
@NullMarked public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-