com.marklogic.hub.ApplicationConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marklogic-data-hub Show documentation
Show all versions of marklogic-data-hub Show documentation
Library for Creating an Operational Data Hub on MarkLogic
package com.marklogic.hub;
import com.marklogic.hub.impl.HubConfigImpl;
import com.marklogic.hub.impl.HubProjectImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
* Spring configuration for accessing DHF components, along with a single HubConfigImpl use. Only appropriate for a
* context where a single HubConfigImpl makes sense, such as the DHF Gradle plugin and DHF client JAR.
*/
@Configuration
@ComponentScan(basePackages = {"com.marklogic.hub.impl", "com.marklogic.hub.deploy.commands",
"com.marklogic.hub.flow.impl", "com.marklogic.hub.step", "com.marklogic.hub.util"})
public class ApplicationConfig {
/**
* HubConfigImpl is no longer a Component. But users of this class expect it to be present in the Spring container,
* so it's declared as a Bean here. And it's given a new HubProjectImpl, which is als no longer a Component.
*
* @return
*/
@Bean
HubConfig hubConfig() {
return new HubConfigImpl(new HubProjectImpl());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy