/** * Adds instances of {@link CustomDataStoreFactory} that should be used by uniVocity to read any * custom {@link DataStoreConfiguration}, provided by the user in the constructor of this class, * to properly create instances of {@link CustomDataStore}. * * @param customFactories the factories that process user-provided data store configurations and * generate custom data store instances. */ public final void addCustomDataStoreFactories(CustomDataStoreFactory<?>... customFactories) { Args.notEmpty(customFactories, "Custom data store factories"); for (CustomDataStoreFactory<?> customFactory : customFactories) { Args.notNull(customFactory, "Custom data store factory"); customDataStoreFactories.add(customFactory); } }
/** * Adds the configurations for data stores whose entities will be mapped using the engine created * by this class. * * @param dataStores configurations of data stores that will have their entities mapped through * this engine. */ public final void addDataStoreConfigurations(DataStoreConfiguration... dataStores) { Args.notEmpty(dataStores, "Data stores"); for (DataStoreConfiguration config : dataStores) { Args.notNull(config, "Data store configuration"); dataStoreConfigurations.add(config); } }
public CryptoMapper(final IRequestMapper wrappedMapper, final IProvider<ICrypt> cryptProvider) { super(); this.wrappedMapper = (IRequestMapper) Args.notNull((Object) wrappedMapper, "wrappedMapper"); this.cryptProvider = (IProvider<ICrypt>) Args.notNull((Object) cryptProvider, "cryptProvider"); }