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 anOperationContextand might take advantage of aBaseConnectionbut might not implement the same base interface. Specifically, those that implementOperationvs 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 protectedContextualOperation(OperationContext context)Creates a new instance using the required operation context.protectedContextualOperation(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.OperationContextgetContext()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 newBaseConnectionwill 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
-
-