@Configuration
@PropertySource(value="classpath:defaults.properties",ignoreResourceNotFound=true) @PropertySource(value="file:${NOVA.SERVICE.CONFIG}",ignoreResourceNotFound=true) @PropertySource(value="classpath:${NOVA.SERVICE.CONFIG}",ignoreResourceNotFound=true)
@Import(value={ch.squaredesk.nova.events.annotation.AnnotationEnablingConfiguration.class,ch.squaredesk.nova.events.annotation.NovaProvidingConfiguration.class})
public abstract class NovaServiceConfiguration<ServiceType>
extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.Environment |
environment |
| Constructor and Description |
|---|
NovaServiceConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
instanceId() |
static LifecycleBeanProcessor |
lifecycleBeanProcessor() |
boolean |
registerShutdownHook() |
abstract ServiceType |
serviceInstance() |
String |
serviceName() |
@Bean(name="instanceId") public String instanceId()
@Bean(name="serviceName") public String serviceName()
@Bean public static LifecycleBeanProcessor lifecycleBeanProcessor()
@Bean public boolean registerShutdownHook()
public abstract ServiceType serviceInstance()
Copyright © 2018. All rights reserved.