package com.l7tech.server.module;

import com.l7tech.gateway.common.module.ServerModuleFile;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.util.Either;
import com.l7tech.util.Option;
import com.l7tech.util.Functions.Nullary;

class g implements Nullary<Either<FindException, Option<ServerModuleFile>>> {
   final Goid val$goid;
   final ServerModuleFileListener this$0;

   g(ServerModuleFileListener var1, Goid var2) {
      this.this$0 = var1;
      this.val$goid = var2;
   }

   public Either<FindException, Option<ServerModuleFile>> call() {
      try {
         return Either.rightOption((ServerModuleFile)this.this$0.serverModuleFileManager.findByPrimaryKey(this.val$goid));
      } catch (FindException var2) {
         return Either.left(var2);
      }
   }
}
