package com.l7tech.server.policy;

import com.l7tech.objectmodel.EntityManager;
import com.l7tech.policy.Policy;
import com.l7tech.server.ServerConfig;
import com.l7tech.server.event.EntityInvalidationEvent;
import com.l7tech.server.util.ApplicationEventProxy;

class a extends CacheableGuidEntityResolver<Policy> {
   a(ServerAssertionRegistry var1, EntityManager var2, ApplicationEventProxy var3, ServerConfig var4) {
      super(var2, var3, var4);
   }

   @Override
   protected boolean isInterestedEntityEvent(EntityInvalidationEvent var1) {
      return Policy.class.isAssignableFrom(var1.getEntityClass());
   }

   protected void notifyUpdate(Policy param1) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 1
      // 01: ifnull 21
      // 04: aload 1
      // 05: invokevirtual com/l7tech/policy/Policy.getType ()Lcom/l7tech/policy/PolicyType;
      // 08: getstatic com/l7tech/policy/PolicyType.INCLUDE_FRAGMENT Lcom/l7tech/policy/PolicyType;
      // 0b: if_acmpne 21
      // 0e: goto 15
      // 11: invokestatic com/l7tech/server/policy/a.b (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 14: athrow
      // 15: aload 0
      // 16: aload 1
      // 17: invokespecial com/l7tech/server/policy/CacheableGuidEntityResolver.notifyUpdate (Lcom/l7tech/objectmodel/GuidEntity;)V
      // 1a: goto 21
      // 1d: invokestatic com/l7tech/server/policy/a.b (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 20: athrow
      // 21: return
      // try (0 -> 6): 7 java/lang/NullPointerException
      // try (2 -> 12): 13 java/lang/NullPointerException
   }

   private static NullPointerException b(NullPointerException var0) {
      return var0;
   }
}
