Class BaseConfig

  • Direct Known Subclasses:
    BaseConfigDstu3Plus, BaseDstu2Config

    @Configuration
    @EnableJpaRepositories(basePackages="ca.uhn.fhir.jpa.dao.data")
    @ComponentScan(basePackages="ca.uhn.fhir.jpa",excludeFilters={,,,,})
    public abstract class BaseConfig
    extends Object
    • Field Detail

      • myEnv

        @Autowired
        protected org.springframework.core.env.Environment myEnv
    • Constructor Detail

      • BaseConfig

        public BaseConfig()
    • Method Detail

      • daoRegistry

        @Bean("myDaoRegistry")
        public DaoRegistry daoRegistry()
      • entityManagerFactory

        protected org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory()
        This method should be overridden to provide an actual completed bean, but it provides a partially completed entity manager factory with HAPI FHIR customizations
      • fhirContext

        public abstract FhirContext fhirContext()
      • graphqlStorageServices

        @Bean
        @Lazy
        public org.hl7.fhir.utilities.graphql.IGraphQLStorageServices graphqlStorageServices()
      • scheduledExecutorService

        @Bean
        public org.springframework.scheduling.concurrent.ScheduledExecutorFactoryBean scheduledExecutorService()
      • subscriptionTriggeringProvider

        @Bean(name="mySubscriptionTriggeringProvider")
        @Lazy
        public SubscriptionTriggeringProvider subscriptionTriggeringProvider()
      • binaryAccessProvider

        @Bean(name="myAttachmentBinaryAccessProvider")
        @Lazy
        public BinaryAccessProvider binaryAccessProvider()
      • binaryStorageInterceptor

        @Bean(name="myBinaryStorageInterceptor")
        @Lazy
        public BinaryStorageInterceptor binaryStorageInterceptor()
      • taskScheduler

        @Bean
        public org.springframework.scheduling.TaskScheduler taskScheduler()
      • taskExecutor

        @Bean(name="hapiJpaTaskExecutor")
        public org.springframework.core.task.AsyncTaskExecutor taskExecutor()
      • linkedBlockingQueueSubscribableChannelFactory

        @Bean
        public ISubscribableChannelFactory linkedBlockingQueueSubscribableChannelFactory()
        Create a @Primary @Bean if you need a different implementation
      • subscriptionMatcherCompositeInMemoryDatabase

        @Bean
        @Primary
        public ISubscriptionMatcher subscriptionMatcherCompositeInMemoryDatabase()
      • persistenceExceptionTranslationPostProcessor

        @Bean
        public org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor()
      • isSupported

        protected boolean isSupported​(String theResourceType)
        Subclasses may override
      • consentContextServices

        @Bean
        public ca.uhn.fhir.rest.server.interceptor.consent.IConsentContextServices consentContextServices()
      • configureEntityManagerFactory

        public static void configureEntityManagerFactory​(org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean theFactory,
                                                         FhirContext theCtx)