All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expleague.ml.cache.MultipartDataCacheItem Maven / Gradle / Ivy

package com.expleague.ml.cache;

public class MultipartDataCacheItem extends DataCacheItem.Stub {
  public MultipartDataCacheItem(String name, Class partClass) {
    super(name);
    try {
      //noinspection JavaReflectionMemberAccess
      partClass.getConstructor(String.class, int.class);
    } catch (NoSuchMethodException e) {
      throw new RuntimeException("Unable to create multipart cache item: no component constructor with path and index (String, int) parameters", e);
    }
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy