Package com.sodius.mdw.server.launch
Interface Argument
-
- All Known Implementing Classes:
ObjectArgument
public interface Argument
Describes a launch argument, which is the actual value matching a ruleset expected parameter.Clients may implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getValueDescriptor()
Returns a String description of the argument, for end-user display.Object
resolveValue(LaunchContext context)
Resolves the argument to the actual value sent to the launched ruleset.
-
-
-
Method Detail
-
getValueDescriptor
String getValueDescriptor()
Returns a String description of the argument, for end-user display.- Returns:
- a String description of the argument, for end-user display.
-
resolveValue
Object resolveValue(LaunchContext context) throws CoreException
Resolves the argument to the actual value sent to the launched ruleset.When an
Argument
instance is created, it might contain only the minimal information that allows resolving to the actual object to be used as execution parameter. For example if the declared Service parameter is of typecom.sodius.mdw.clm.server.storage.Storage
and the argument is the URL of a storage (as a String), resolving the value returns ajava.io.File
instance, referring to the actual Storage content.- Parameters:
context
- the launch context- Returns:
- the resolved argument value, to be used as a ruleset parameter.
- Throws:
CoreException
- if resolving the value fails.
-
-