@Component(value="cuba_AppPropertiesLocator")
public class AppPropertiesLocator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
protected DataManager |
dataManager |
protected com.haulmont.chile.core.datatypes.DatatypeRegistry |
datatypes |
protected java.util.Set<java.lang.String> |
interfacesCache |
protected Metadata |
metadata |
protected org.springframework.core.type.classreading.MetadataReaderFactory |
metadataReaderFactory |
static java.lang.String |
NAME |
protected org.springframework.core.io.support.ResourcePatternResolver |
resourcePatternResolver |
protected UserSessionSource |
userSessionSource |
Constructor and Description |
---|
AppPropertiesLocator() |
Modifier and Type | Method and Description |
---|---|
protected void |
assignLastUpdated(AppPropertyEntity entity,
java.util.List<Config> dbContent) |
protected java.util.Set<java.lang.Class> |
findConfigInterfaces() |
protected java.util.List<AppPropertyEntity> |
findDatabaseStoredProperties(java.util.Set<java.lang.Class> configInterfaces) |
java.util.List<AppPropertyEntity> |
getAppProperties() |
protected java.lang.String |
getCurrentValue(java.lang.reflect.Method method,
java.lang.Object config) |
protected java.lang.String |
getDefaultValue(java.lang.reflect.Method method) |
protected TypeStringify |
getTypeStringify(java.lang.reflect.Method method) |
protected TypeStringify |
getTypeStringifyForFactory(java.lang.Class<? extends TypeFactory> factoryClass) |
protected java.util.List<Config> |
loadDbContent() |
public static final java.lang.String NAME
protected volatile java.util.Set<java.lang.String> interfacesCache
protected org.springframework.core.io.support.ResourcePatternResolver resourcePatternResolver
protected org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory
@Inject protected Metadata metadata
@Inject protected Configuration configuration
@Inject protected com.haulmont.chile.core.datatypes.DatatypeRegistry datatypes
@Inject protected DataManager dataManager
@Inject protected UserSessionSource userSessionSource
public java.util.List<AppPropertyEntity> getAppProperties()
protected java.util.Set<java.lang.Class> findConfigInterfaces()
protected java.util.List<AppPropertyEntity> findDatabaseStoredProperties(java.util.Set<java.lang.Class> configInterfaces)
protected java.util.List<Config> loadDbContent()
protected void assignLastUpdated(AppPropertyEntity entity, java.util.List<Config> dbContent)
protected java.lang.String getCurrentValue(java.lang.reflect.Method method, java.lang.Object config)
protected TypeStringify getTypeStringify(java.lang.reflect.Method method)
@Nullable protected TypeStringify getTypeStringifyForFactory(java.lang.Class<? extends TypeFactory> factoryClass)
protected java.lang.String getDefaultValue(java.lang.reflect.Method method)