Class AbstractStoreBeanDefinitionRegistrar
java.lang.Object
org.springframework.content.commons.config.AbstractStoreBeanDefinitionRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.annotation.ImportBeanDefinitionRegistrar
,org.springframework.context.EnvironmentAware
,org.springframework.context.ResourceLoaderAware
public abstract class AbstractStoreBeanDefinitionRegistrar
extends Object
implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.BeanFactoryAware
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildAndRegisterDefinitions
(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry, org.springframework.core.annotation.AnnotationAttributes attributes, String[] basePackages, Set<org.springframework.beans.factory.support.GenericBeanDefinition> definitions) protected org.springframework.beans.factory.config.BeanDefinition
createBeanDefinition
(Class<?> beanType) protected void
createOperationsBean
(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) protected abstract Class<? extends Annotation>
Return the annotation to obtain configuration information fromprotected String[]
getBasePackages
(org.springframework.core.annotation.AnnotationAttributes attributes, org.springframework.core.type.AnnotationMetadata importingClassMetadata) protected org.springframework.beans.factory.BeanFactory
org.springframework.core.env.Environment
protected String
Return the storage module's override property valueprotected org.springframework.core.io.ResourceLoader
protected abstract Class<?>[]
Return the storage module's signature typesloadStoreClass
(org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry, org.springframework.beans.factory.config.BeanDefinition definition) protected boolean
void
registerBeanDefinitions
(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) protected void
registerContentStoreBeanDefinitions
(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) void
setEnvironment
(org.springframework.core.env.Environment env) void
setResourceLoader
(org.springframework.core.io.ResourceLoader resourceLoader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
registerBeanDefinitions
-
Field Details
-
STORE_INTERFACE_PROPERTY
- See Also:
-
DOMAIN_CLASS_PROPERTY
- See Also:
-
ID_CLASS_PROPERTY
- See Also:
-
STORE_INTERFACE_CLASS_PROPERTY
- See Also:
-
-
Constructor Details
-
AbstractStoreBeanDefinitionRegistrar
public AbstractStoreBeanDefinitionRegistrar()
-
-
Method Details
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment env) - Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-
getEnvironment
public org.springframework.core.env.Environment getEnvironment() -
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoader
in interfaceorg.springframework.context.ResourceLoaderAware
-
getResourceLoader
protected org.springframework.core.io.ResourceLoader getResourceLoader() -
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory() -
registerBeanDefinitions
public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) - Specified by:
registerBeanDefinitions
in interfaceorg.springframework.context.annotation.ImportBeanDefinitionRegistrar
-
registerContentStoreBeanDefinitions
protected void registerContentStoreBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) -
buildAndRegisterDefinitions
protected void buildAndRegisterDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry, org.springframework.core.annotation.AnnotationAttributes attributes, String[] basePackages, Set<org.springframework.beans.factory.support.GenericBeanDefinition> definitions) -
getBasePackages
protected String[] getBasePackages(org.springframework.core.annotation.AnnotationAttributes attributes, org.springframework.core.type.AnnotationMetadata importingClassMetadata) -
createBeanDefinition
protected org.springframework.beans.factory.config.BeanDefinition createBeanDefinition(Class<?> beanType) -
loadStoreClass
protected Class<? extends Store> loadStoreClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry, org.springframework.beans.factory.config.BeanDefinition definition) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
createOperationsBean
protected void createOperationsBean(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) -
multipleStoreImplementationsDetected
protected boolean multipleStoreImplementationsDetected() -
getAnnotation
Return the annotation to obtain configuration information from- Returns:
- configuration annotation
-
getSignatureTypes
Return the storage module's signature types- Returns:
- array of classes that represent signature types
-
getOverridePropertyValue
Return the storage module's override property value- Returns:
- the storage modules' override property value
-