Package com.sodius.mdw.server.launch
Interface LaunchContext
-
public interface LaunchContext
Provides information to a service developer on the execution context.This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Argument
getArgument(String name)
Returns the launch argument matching the specified service parameter name.PropertySet
getProperties()
Returns properties configuring the service execution.Service
getService()
Returns the launched service.void
setArgument(String name, Argument argument)
Changes the argument associated with the specified service parameter name.
-
-
-
Method Detail
-
getService
Service getService()
Returns the launched service.- Returns:
- the launched service.
-
getProperties
PropertySet getProperties()
Returns properties configuring the service execution. The set of properties notably includes servlet request headers and query parameters.- Returns:
- properties configuring the service execution.
-
getArgument
Argument getArgument(String name)
Returns the launch argument matching the specified service parameter name.- Parameters:
name
- the name of the service parameter.- Returns:
- the corresponding launch argument,
null
if not found.
-
setArgument
void setArgument(String name, Argument argument)
Changes the argument associated with the specified service parameter name. This method might be called from a customLaunchInterceptor
implementation.- Parameters:
name
- the name of the service parameter.argument
- the associated launch argument.- See Also:
LaunchInterceptor.launchScheduled(LaunchContext)
-
-