@samagra-x/uci-adapters-factory
v1.1.20
Published
A factory module which provides specific adapter instance based on request data.
Downloads
509
Maintainers
Keywords
Readme
UCI Adapter Provider Factory
A factory class that provides specific adapter types based on request data. @samagra-x/uci-adapters-factory
Usage
import { AdapterFactory } from '@samagra-x/uci-adapters-factory';
const adapter = AdapterFactory.getAdapter({
type: 'TYPE_OF_ADAPTER',
config: {
configVariable1: 'CONFIG_VALUE1',
configVariable2: 'CONFIG_VALUE2',
...
}
});
adapter.sendMessage(MESSAGE_DATA);
Take a look at factory to get a list of available adapters.