Package org.chenile.core.init
Class AbstractServiceInitializer
java.lang.Object
org.chenile.core.init.AbstractServiceInitializer
- All Implemented Interfaces:
InitializingBean
- Direct Known Subclasses:
AnnotationChenileServiceInitializer,ChenileServiceInitializer
A super class to instantiate a service. This can be used to instantiate it from a file
or from annotation or whatever other mechanism.
It registers a service in
ChenileConfiguration-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic Command<ChenileExchange>constructBodyTypeInterceptorsChain(String[] bodyTypeInterceptors, ApplicationContext applicationContext) abstract voidinit()private List<Command<ChenileExchange>>initInterceptors(List<String> interceptorCommandNames) protected voidregisterService(String jsonPath) protected voidprotected voidregisterService(Resource resource) private voidprivate voidprivate voidprivate void
-
Field Details
-
serviceConfiguration
-
applicationContext
-
-
Constructor Details
-
AbstractServiceInitializer
public AbstractServiceInitializer()
-
-
Method Details
-
init
- Throws:
Exception
-
registerService
- Throws:
IOException
-
registerService
- Throws:
IOException
-
registerServiceDefinition
- Throws:
IOException
-
registerServiceDefinition
- Throws:
IOException
-
registerService
-
validate
-
validate
-
initInterceptors
-
constructBodyTypeInterceptorsChain
public static Command<ChenileExchange> constructBodyTypeInterceptorsChain(String[] bodyTypeInterceptors, ApplicationContext applicationContext) -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-