package com.l7tech.policy;

import com.l7tech.policy.assertion.Assertion;
import org.springframework.context.ApplicationEvent;

public class AssertionRegistrationEvent extends ApplicationEvent {
   private final Assertion prototypeInstance;
   static final long serialVersionUID = -5193549673458603643L;

   public AssertionRegistrationEvent(Object var1, Assertion var2) {
      super(var1);
      if (var2 == null) {
         throw new NullPointerException();
      }

      this.prototypeInstance = var2;
   }

   public String getAssertionClassname() {
      return this.prototypeInstance.getClass().getName();
   }

   public Assertion getPrototypeInstance() {
      return this.prototypeInstance;
   }
}
