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 Details

  • Constructor Details

    • AbstractStoreBeanDefinitionRegistrar

      public AbstractStoreBeanDefinitionRegistrar()
  • Method Details

    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment env)
      Specified by:
      setEnvironment in interface org.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 interface org.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 interface org.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 interface org.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

      protected abstract Class<? extends Annotation> getAnnotation()
      Return the annotation to obtain configuration information from
      Returns:
      configuration annotation
    • getSignatureTypes

      protected abstract Class<?>[] getSignatureTypes()
      Return the storage module's signature types
      Returns:
      array of classes that represent signature types
    • getOverridePropertyValue

      protected String getOverridePropertyValue()
      Return the storage module's override property value
      Returns:
      the storage modules' override property value