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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static Command<ChenileExchange>
constructBodyTypeInterceptorsChain
(String[] bodyTypeInterceptors, ApplicationContext applicationContext) abstract void
init()
private List<Command<ChenileExchange>>
initInterceptors
(List<String> interceptorCommandNames) protected void
registerService
(String jsonPath) protected void
protected void
registerService
(Resource resource) private void
private void
private void
private 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:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-