@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
| 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.core.module.discovery.ServiceDiscovery serviceDiscovery) |
io.crnk.servlet.CrnkFilter |
crnkFilter(io.crnk.core.boot.CrnkBoot boot) |
io.crnk.spring.internal.SpringServiceDiscovery |
discovery() |
io.crnk.core.module.ModuleRegistry |
moduleRegistry(io.crnk.core.boot.CrnkBoot boot) |
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(io.crnk.core.boot.CrnkBoot boot) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
@Autowired public CrnkCoreAutoConfiguration(CrnkCoreProperties properties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Bean @ConditionalOnMissingBean(value=io.crnk.core.module.discovery.ServiceDiscovery.class) public io.crnk.spring.internal.SpringServiceDiscovery discovery()
@Bean @ConditionalOnMissingBean(value=io.crnk.core.boot.CrnkBoot.class) public io.crnk.core.boot.CrnkBoot crnkBoot(io.crnk.core.module.discovery.ServiceDiscovery serviceDiscovery)
@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(io.crnk.core.boot.CrnkBoot boot)
@Bean public io.crnk.core.module.ModuleRegistry moduleRegistry(io.crnk.core.boot.CrnkBoot boot)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAware