Class ApplicationHandlers
java.lang.Object
org.gcube.smartgears.configuration.application.ApplicationHandlers
The
ApplicationHandlers that manage the application.- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationHandlers(List<ApplicationLifecycleHandler> lifecycleHandlers, List<RequestHandler> requestHandlers) Creates application handlers with the specified lifecycle and request handlers. -
Method Summary
Modifier and TypeMethodDescriptionReturns theApplicationLifecycleHandlers for the service.voidmergeWith(ApplicationHandlers other) Merges this handler collection with another one.Returns theRequestHandlers for the service.setLifecycleHandlers(List<ApplicationLifecycleHandler> handlers) Sets theApplicationLifecycleHandlers for the service.setRequetHandlers(List<RequestHandler> handlers) Sets theRequestHandlers for the service.
-
Constructor Details
-
ApplicationHandlers
public ApplicationHandlers(List<ApplicationLifecycleHandler> lifecycleHandlers, List<RequestHandler> requestHandlers) Creates application handlers with the specified lifecycle and request handlers.- Parameters:
lifecycleHandlers- the lifecycle handlersrequestHandlers- the request handlers
-
-
Method Details
-
lifecycleHandlers
Returns theApplicationLifecycleHandlers for the service.- Returns:
- the lifecycle handlers
-
setLifecycleHandlers
Sets theApplicationLifecycleHandlers for the service.- Parameters:
handlers- the lifecycle handlers- Returns:
- this configuration
-
requestHandlers
Returns theRequestHandlers for the service.- Returns:
- the lifetime handlers
-
setRequetHandlers
Sets theRequestHandlers for the service.- Parameters:
handlers- the request handlers- Returns:
- this configuration
-
mergeWith
Merges this handler collection with another one.- Parameters:
other- the other handler collection to merge with
-