Class JpaMetamodelMappingContextFactoryBean

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<JpaMetamodelMappingContext>
org.springframework.data.jpa.repository.config.JpaMetamodelMappingContextFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<JpaMetamodelMappingContext>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class JpaMetamodelMappingContextFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<JpaMetamodelMappingContext> implements org.springframework.context.ApplicationContextAware
FactoryBean to setup JpaMetamodelMappingContext instances from Spring configuration.
Since:
1.6
Author:
Oliver Gierke, Mark Paluch
  • Field Summary

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JpaMetamodelMappingContextFactoryBean

      public JpaMetamodelMappingContextFactoryBean()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<JpaMetamodelMappingContext>
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<JpaMetamodelMappingContext>
    • createInstance

      protected JpaMetamodelMappingContext createInstance()
      Specified by:
      createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<JpaMetamodelMappingContext>