Package org.chenile.http.init
Class AnnotationChenileServiceInitializer
java.lang.Object
org.chenile.core.init.AbstractServiceInitializer
org.chenile.http.init.AnnotationChenileServiceInitializer
- All Implemented Interfaces:
InitializingBean
Uses a Spring controller with additional annotations to initiate a Chenile Service.
The controller must extend from ControllerSupport.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.chenile.core.init.AbstractServiceInitializer
AbstractServiceInitializer.InterceptorChain
-
Field Summary
Modifier and TypeFieldDescription(package private) ApplicationContext
(package private) ChenileConfiguration
private DeleteMappingProducer
private GetMappingProducer
private final org.slf4j.Logger
private PatchMappingProducer
private PostMappingProducer
private PutMappingProducer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectChenileAnnotations
(Object controller, ChenileServiceDefinition csd) private Class<?>
private void
configureOperations
(Class<?> type, ChenileServiceDefinition csd) void
init()
private Object
Methods inherited from class org.chenile.core.init.AbstractServiceInitializer
afterPropertiesSet, constructBodyTypeInterceptorsChain, registerService, registerService, registerService
-
Field Details
-
logger
private final org.slf4j.Logger logger -
applicationContext
-
chenileConfiguration
-
deleteMappingProducer
-
getMappingProducer
-
patchMappingProducer
-
postMappingProducer
-
putMappingProducer
-
-
Constructor Details
-
AnnotationChenileServiceInitializer
public AnnotationChenileServiceInitializer()
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) @Order(10) public void init() throws Exception- Specified by:
init
in classAbstractServiceInitializer
- Throws:
Exception
-
computeInterfaceClass
-
collectChenileAnnotations
-
lookup
-
configureOperations
-