package com.l7tech.gateway.common.spring.util;

import java.util.Collection;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.SimpleApplicationEventMulticaster;
import org.springframework.core.ResolvableType;

public class SsgApplicationEventMulticaster extends SimpleApplicationEventMulticaster {
   protected Collection<ApplicationListener<?>> getApplicationListeners(ApplicationEvent var1, ResolvableType var2) {
      Class var3 = var1.getSource() != null ? var1.getSource().getClass() : null;
      if (var3 != null) {
         this.setBeanClassLoader(var3.getClassLoader());
      }

      return super.getApplicationListeners(var1, var2);
   }
}
