Package io.jmix.flowui.sys
Class ViewControllersConfiguration
java.lang.Object
io.jmix.flowui.sys.AbstractScanConfiguration
io.jmix.flowui.sys.ViewControllersConfiguration
Configuration that performs ClassPath scanning of
ViewController
s and provides ViewControllerDefinition
.-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected List<ViewControllerDefinition>
protected org.springframework.core.type.classreading.MetadataReaderFactory
Fields inherited from class io.jmix.flowui.sys.AbstractScanConfiguration
DEFAULT_CLASS_RESOURCE_PATTERN
-
Constructor Summary
ConstructorDescriptionViewControllersConfiguration
(org.springframework.context.ApplicationContext applicationContext, AnnotationScanMetadataReaderFactory metadataReaderFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ViewControllerDefinition
extractControllerDefinition
(org.springframework.core.type.classreading.MetadataReader metadataReader) protected org.springframework.core.env.Environment
protected org.springframework.core.type.classreading.MetadataReaderFactory
protected org.springframework.core.io.ResourceLoader
protected boolean
isCandidateViewController
(org.springframework.core.type.classreading.MetadataReader metadataReader) void
setBasePackages
(List<String> basePackages) void
setExplicitDefinitions
(List<ViewControllerDefinition> explicitDefinitions) Methods inherited from class io.jmix.flowui.sys.AbstractScanConfiguration
resolveBasePackage, scanPackage
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
metadataReaderFactory
protected org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory -
basePackages
-
explicitDefinitions
-
-
Constructor Details
-
ViewControllersConfiguration
@Autowired public ViewControllersConfiguration(org.springframework.context.ApplicationContext applicationContext, AnnotationScanMetadataReaderFactory metadataReaderFactory)
-
-
Method Details
-
getBasePackages
-
setBasePackages
-
getExplicitDefinitions
-
setExplicitDefinitions
-
getViewControllers
-
extractControllerDefinition
protected ViewControllerDefinition extractControllerDefinition(org.springframework.core.type.classreading.MetadataReader metadataReader) -
isCandidateViewController
protected boolean isCandidateViewController(org.springframework.core.type.classreading.MetadataReader metadataReader) -
getMetadataReaderFactory
protected org.springframework.core.type.classreading.MetadataReaderFactory getMetadataReaderFactory()- Specified by:
getMetadataReaderFactory
in classAbstractScanConfiguration
-
getResourceLoader
protected org.springframework.core.io.ResourceLoader getResourceLoader()- Specified by:
getResourceLoader
in classAbstractScanConfiguration
-
getEnvironment
protected org.springframework.core.env.Environment getEnvironment()- Specified by:
getEnvironment
in classAbstractScanConfiguration
-