Package com.boomi.connector.util
Class ContextualOperation
- java.lang.Object
-
- com.boomi.connector.util.ContextualOperation
-
- Direct Known Subclasses:
BaseListenOperation
,BaseOperation
public abstract class ContextualOperation extends Object
Base class for operations that were created using anOperationContext
and might take advantage of aBaseConnection
but might not implement the same base interface. Specifically, those that implementOperation
vs those that implementListenOperation
. This isn't really intended to be extended directly by connector developers. Instead, one of the base classes that use this as a common ancestor should be implemented.- See Also:
BaseOperation
,BaseListenOperation
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContextualOperation(OperationContext context)
Creates a new instance using the required operation context.protected
ContextualOperation(BaseConnection<OperationContext> connection)
Creates a new instance using the required base connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseConnection<OperationContext>
getConnection()
Returns the base connection that was either provided or created when this instance was created.OperationContext
getContext()
Returns the OperationContext provided when the operation was constructed.
-
-
-
Constructor Detail
-
ContextualOperation
protected ContextualOperation(OperationContext context)
Creates a new instance using the required operation context. A newBaseConnection
will be created.
-
ContextualOperation
protected ContextualOperation(BaseConnection<OperationContext> connection)
Creates a new instance using the required base connection.
-
-
Method Detail
-
getConnection
public BaseConnection<OperationContext> getConnection()
Returns the base connection that was either provided or created when this instance was created.- Returns:
- the base connection
-
getContext
public OperationContext getContext()
Returns the OperationContext provided when the operation was constructed.- Returns:
- the operation context
-
-