public interface Connector
Connector implementations must be thread-safe.
Modifier and Type | Method and Description |
---|---|
Browser |
createBrowser(BrowseContext context)
Returns a Browser for this connector.
|
Operation |
createOperation(OperationContext context)
Returns the actual Operation.
|
void |
initialize(AtomContext context)
Does any startup initialization for this connector.
|
void initialize(AtomContext context)
This call may do expensive things like open connections or other resources which will be used throughout the
Connector's lifecycle. Connectors are never explicitly closed, so explicit resource cleanup (if necessary) should
be managed through garbage-collector hooks (e.g. reference objects or finalize). Note that any resources cached
at the Connector level should not be account specific. The preferred resource cache is the one returned by
a call to ConnectorContext.getConnectorCache()
as it is Boomi account specific and therefore may be used to
cache account specific information.
context
- the static atom contextBrowser createBrowser(BrowseContext context)
ConnectorContext.getConnectionProperties()
if the configuration is marked "requireConnectionForBrowse" and all
operation fields marked "includeInBrowse will be provided in BrowseContext.getOperationProperties()
(where
the keys will be the relevant field's "id" and the values will be of the appropriate Java type for the relevant
field's "type").
This call should be relatively cheap as Browsers are only ever created for a single invocation. Any resource
caching should be handled at the Connector level or via the ConnectorContext.getConnectorCache()
.
context
- the context for this browse operation. this context is considered to be owned by the Browser after
this call and may be held by the Browser for use in subsequent method calls.Operation createOperation(OperationContext context)
ConnectorContext.getConnectionProperties()
and operation all fields will be provided in
BrowseContext.getOperationProperties()
(where the keys will be the relevant field's "id" and the values
will be of the appropriate Java type for the relevant field's "type").
This call should be relatively cheap as Operations are only ever created for a single invocation. Any resource
caching should be handled at the Connector level or via the ConnectorContext.getConnectorCache()
.
context
- the context for this connector operation. this context is considered to be owned by the Operation
after this call and may be held by the Operation for use in subsequent method calls.