Package de.quantummaid.httpmaid
Class CoreModule
- java.lang.Object
-
- de.quantummaid.httpmaid.CoreModule
-
- All Implemented Interfaces:
ChainModule,Configurator
public final class CoreModule extends Object implements ChainModule
-
-
Field Summary
Fields Modifier and Type Field Description static MetaDataKey<de.quantummaid.reflectmaid.ReflectMaid>REFLECT_MAIDstatic MetaDataKey<RuntimeConfiguration>RUNTIME_CONFIGURATION
-
Constructor Summary
Constructors Constructor Description CoreModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExceptionMapper(Predicate<Throwable> filter, ExceptionMapper<Throwable> responseMapper)voidconfigure(DependencyRegistry dependencyRegistry)static CoreModulecoreModule(de.quantummaid.reflectmaid.ReflectMaid reflectMaid)voidinit(MetaData configurationMetaData)voidregister(ChainExtender extender)voidregisterHandler(GenerationCondition condition, Object handler, List<PerRouteConfigurator> perRouteConfigurators)voidsetDefaultExceptionMapper(ExceptionMapper<Throwable> responseMapper)voidsetPageNotFoundExceptionMapper(ExceptionMapper<PageNotFoundException> pageNotFoundExceptionMapper)voidsetResponseTemplate(ResponseTemplate responseTemplate)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.quantummaid.httpmaid.chains.ChainModule
identifier
-
Methods inherited from interface de.quantummaid.httpmaid.chains.Configurator
supplyModulesIfNotAlreadyPresent
-
-
-
-
Field Detail
-
REFLECT_MAID
public static final MetaDataKey<de.quantummaid.reflectmaid.ReflectMaid> REFLECT_MAID
-
RUNTIME_CONFIGURATION
public static final MetaDataKey<RuntimeConfiguration> RUNTIME_CONFIGURATION
-
-
Method Detail
-
coreModule
public static CoreModule coreModule(de.quantummaid.reflectmaid.ReflectMaid reflectMaid)
-
registerHandler
public void registerHandler(GenerationCondition condition, Object handler, List<PerRouteConfigurator> perRouteConfigurators)
-
setResponseTemplate
public void setResponseTemplate(ResponseTemplate responseTemplate)
-
setPageNotFoundExceptionMapper
public void setPageNotFoundExceptionMapper(ExceptionMapper<PageNotFoundException> pageNotFoundExceptionMapper)
-
addExceptionMapper
public void addExceptionMapper(Predicate<Throwable> filter, ExceptionMapper<Throwable> responseMapper)
-
setDefaultExceptionMapper
public void setDefaultExceptionMapper(ExceptionMapper<Throwable> responseMapper)
-
init
public void init(MetaData configurationMetaData)
- Specified by:
initin interfaceConfigurator
-
configure
public void configure(DependencyRegistry dependencyRegistry)
- Specified by:
configurein interfaceChainModule- Specified by:
configurein interfaceConfigurator
-
register
public void register(ChainExtender extender)
- Specified by:
registerin interfaceChainModule
-
-