.class public Lorg/apache/commons/logging/impl/ServletContextCleaner; .super Ljava/lang/Object; .source "ServletContextCleaner.java" # interfaces .implements Ljavax/servlet/ServletContextListener; # static fields .field private static final RELEASE_SIGNATURE:[Ljava/lang/Class; .field static synthetic class$java$lang$ClassLoader:Ljava/lang/Class; # direct methods .method static constructor ()V .registers 3 const/4 v0, 0x1 .line 52 new-array v0, v0, [Ljava/lang/Class; sget-object v1, Lorg/apache/commons/logging/impl/ServletContextCleaner;->class$java$lang$ClassLoader:Ljava/lang/Class; if-nez v1, :cond_f const-string v1, "java.lang.ClassLoader" invoke-static {v1}, Lorg/apache/commons/logging/impl/ServletContextCleaner;->class$(Ljava/lang/String;)Ljava/lang/Class; move-result-object v1 sput-object v1, Lorg/apache/commons/logging/impl/ServletContextCleaner;->class$java$lang$ClassLoader:Ljava/lang/Class; :cond_f const/4 v2, 0x0 aput-object v1, v0, v2 sput-object v0, Lorg/apache/commons/logging/impl/ServletContextCleaner;->RELEASE_SIGNATURE:[Ljava/lang/Class; return-void .end method .method public constructor ()V .registers 1 .line 50 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method static synthetic class$(Ljava/lang/String;)Ljava/lang/Class; .registers 2 .line 52 :try_start_0 invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object p0 :try_end_4 .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_4} :catch_5 return-object p0 :catch_5 move-exception p0 new-instance v0, Ljava/lang/NoClassDefFoundError; invoke-virtual {p0}, Ljava/lang/ClassNotFoundException;->getMessage()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0}, Ljava/lang/NoClassDefFoundError;->(Ljava/lang/String;)V throw v0 .end method # virtual methods .method public contextDestroyed(Ljavax/servlet/ServletContextEvent;)V .registers 7 .line 60 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Thread;->getContextClassLoader()Ljava/lang/ClassLoader; move-result-object p1 .line 63 filled-new-array {p1}, [Ljava/lang/Object; move-result-object v0 move-object v1, p1 :goto_d if-eqz v1, :cond_43 const/4 v2, 0x0 .line 101 :try_start_10 const-string v3, "org.apache.commons.logging.LogFactory" invoke-virtual {v1, v3}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class; move-result-object v1 .line 102 const-string v3, "release" sget-object v4, Lorg/apache/commons/logging/impl/ServletContextCleaner;->RELEASE_SIGNATURE:[Ljava/lang/Class; invoke-virtual {v1, v3, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v3 .line 103 invoke-virtual {v3, v2, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; .line 104 invoke-virtual {v1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader; move-result-object v1 invoke-virtual {v1}, Ljava/lang/ClassLoader;->getParent()Ljava/lang/ClassLoader; move-result-object v1 :try_end_29 .catch Ljava/lang/ClassNotFoundException; {:try_start_10 .. :try_end_29} :catch_41 .catch Ljava/lang/NoSuchMethodException; {:try_start_10 .. :try_end_29} :catch_3a .catch Ljava/lang/IllegalAccessException; {:try_start_10 .. :try_end_29} :catch_32 .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_10 .. :try_end_29} :catch_2a goto :goto_d .line 119 :catch_2a sget-object v1, Ljava/lang/System;->err:Ljava/io/PrintStream; const-string v3, "LogFactory instance release method failed!" invoke-virtual {v1, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V goto :goto_41 .line 115 :catch_32 sget-object v1, Ljava/lang/System;->err:Ljava/io/PrintStream; const-string v3, "LogFactory instance found which is not accessable!" invoke-virtual {v1, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V goto :goto_41 .line 111 :catch_3a sget-object v1, Ljava/lang/System;->err:Ljava/io/PrintStream; const-string v3, "LogFactory instance found which does not support release method!" invoke-virtual {v1, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V :catch_41 :goto_41 move-object v1, v2 goto :goto_d .line 127 :cond_43 invoke-static {p1}, Lorg/apache/commons/logging/LogFactory;->release(Ljava/lang/ClassLoader;)V return-void .end method .method public contextInitialized(Ljavax/servlet/ServletContextEvent;)V .registers 2 return-void .end method