@Configuration
@ConditionalOnProperty(prefix="crnk",
name="enabled",
havingValue="true",
matchIfMissing=true)
@ConditionalOnMissingBean(value=io.crnk.core.boot.CrnkBoot.class)
@EnableConfigurationProperties(value=CrnkCoreProperties.class)
public class CrnkCoreAutoConfiguration
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
| Modifier and Type | Class and Description |
|---|---|
class |
CrnkCoreAutoConfiguration.SpringCrnkBoot |
| Constructor and Description |
|---|
CrnkCoreAutoConfiguration(CrnkCoreProperties properties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
io.crnk.core.boot.CrnkBoot |
crnkBoot() |
io.crnk.servlet.CrnkFilter |
crnkFilter(io.crnk.core.boot.CrnkBoot boot) |
io.crnk.core.module.ModuleRegistry |
crnkModuleRegistry() |
io.crnk.core.engine.registry.ResourceRegistry |
crnkResourceRegistry() |
io.crnk.core.queryspec.mapper.UrlBuilder |
crnkUrlBuilder() |
io.crnk.core.module.discovery.ServiceDiscovery |
discovery() |
io.crnk.core.queryspec.pagingspec.PagingBehavior<io.crnk.core.queryspec.pagingspec.OffsetLimitPagingSpec> |
offsetLimitPagingBehavior() |
io.crnk.core.queryspec.mapper.QuerySpecUrlMapper |
querySpecUrlMapper() |
io.crnk.core.engine.registry.ResourceRegistry |
resourceRegistry() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
@Autowired public CrnkCoreAutoConfiguration(CrnkCoreProperties properties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Bean public io.crnk.core.module.discovery.ServiceDiscovery discovery()
@Bean public io.crnk.core.boot.CrnkBoot crnkBoot()
@Bean @ConditionalOnMissingBean(value=io.crnk.core.engine.registry.ResourceRegistry.class) public io.crnk.core.engine.registry.ResourceRegistry crnkResourceRegistry()
@Bean @ConditionalOnMissingBean(value=io.crnk.core.queryspec.mapper.UrlBuilder.class) public io.crnk.core.queryspec.mapper.UrlBuilder crnkUrlBuilder()
@Bean @ConditionalOnMissingBean(value=io.crnk.core.module.ModuleRegistry.class) public io.crnk.core.module.ModuleRegistry crnkModuleRegistry()
@Bean @ConditionalOnMissingBean(value=io.crnk.core.queryspec.mapper.QuerySpecUrlMapper.class) public io.crnk.core.queryspec.mapper.QuerySpecUrlMapper querySpecUrlMapper()
@Bean @ConditionalOnMissingBean(value=io.crnk.core.queryspec.pagingspec.PagingBehavior.class) public io.crnk.core.queryspec.pagingspec.PagingBehavior<io.crnk.core.queryspec.pagingspec.OffsetLimitPagingSpec> offsetLimitPagingBehavior()
@Bean public io.crnk.servlet.CrnkFilter crnkFilter(io.crnk.core.boot.CrnkBoot boot)
@Bean public io.crnk.core.engine.registry.ResourceRegistry resourceRegistry()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAware