public interface SourceBinder
A binder provides the service with Source models of the bound data
sources, pre-configured with the information required by the service to
manage the sources on behalf of the plugin.
SourceList<? extends Source> bind(Element request) throws InvalidRequestException, Exception
Source models of the bound sources to the service.
Implementations should validate requests and return Sources as
soon as these can be identified from the requests. Sources should be
instead initialised in SourceLifecycle.init()), if and when the
service requires it. Doing otherwise may result in unnecessary work
because the service may recognise that a Source instance with the
same identifier has been previously bound by the plugin. In this case,
the service discards the new instance and invokes
SourceLifecycle.reconfigure(Element)) on the old instance.
request - the client requestInvalidRequestException - if the request is invalidException - if operation fails for any other errorSourceLifecycleCopyright © 2018. All Rights Reserved.