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
TYPE
static final SpecialistType<OperationAgent> TYPE
- The agent's technical type to be used for requesting the agent from a
SpecialistsBroker
.
- Since:
- 4.2.405
getOperation
@Nullable
<P> P getOperation(OperationType<P> type)
- 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
Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480