Package de.espirit.firstspirit.agency
Interface OperationAgent
public interface OperationAgent
Definition of an agent specialized in providing access to application operations.
Kind and number of operations available differs with respect to the operating context.
If an operation is supported in the current context, a container providing the respective API will be available.
Otherwise, no exception will be thrown but
null
be returned.- Since:
- 4.2.405
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SpecialistType<OperationAgent>
The agent's technical type to be used for requesting the agent from aSpecialistsBroker
. -
Method Summary
Modifier and TypeMethodDescription<P> P
getOperation
(OperationType<P> type) Get a new operation object to parameterize and execute it.
-
Field Details
-
TYPE
The agent's technical type to be used for requesting the agent from aSpecialistsBroker
.- Since:
- 4.2.405
-
-
Method Details
-
getOperation
Get a new operation object to parameterize and execute it.- Type Parameters:
P
- The programmatic type of process.- Parameters:
type
- The (technical) operation's type definition.- Returns:
- A new operation instance or
null
, if unsupported in the current context. - Since:
- 4.2.405
-