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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildAndRegisterDefinitions(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.BeanDefinitioncreateBeanDefinition(Class<?> beanType) protected voidcreateOperationsBean(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.BeanFactoryorg.springframework.core.env.Environmentprotected StringReturn the storage module's override property valueprotected org.springframework.core.io.ResourceLoaderprotected abstract Class<?>[]Return the storage module's signature typesloadStoreClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry, org.springframework.beans.factory.config.BeanDefinition definition) protected booleanvoidregisterBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) protected voidregisterContentStoreBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetEnvironment(org.springframework.core.env.Environment env) voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
getEnvironment
public org.springframework.core.env.Environment getEnvironment() -
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoaderin 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:
setBeanFactoryin 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:
registerBeanDefinitionsin 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
-