All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zving.preloader.Reloader Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package com.zving.preloader;

import java.util.concurrent.locks.ReentrantLock;

public class Reloader
{
  public static boolean isReloading = false;
  private static ReentrantLock lock = new ReentrantLock();
  
  /* Error */
  public static void reload()
    throws javax.servlet.ServletException
  {
    // Byte code:
    //   0: getstatic 19	com/zving/preloader/Reloader:lock	Ljava/util/concurrent/locks/ReentrantLock;
    //   3: invokevirtual 30	java/util/concurrent/locks/ReentrantLock:lock	()V
    //   6: iconst_1
    //   7: putstatic 12	com/zving/preloader/Reloader:isReloading	Z
    //   10: getstatic 32	java/lang/System:out	Ljava/io/PrintStream;
    //   13: ldc 38
    //   15: invokevirtual 40	java/io/PrintStream:println	(Ljava/lang/String;)V
    //   18: invokestatic 46	com/zving/preloader/facade/FilterFacade:getInstances	()Ljava/util/HashMap;
    //   21: invokevirtual 52	java/util/HashMap:values	()Ljava/util/Collection;
    //   24: invokeinterface 58 1 0
    //   29: astore_1
    //   30: goto +17 -> 47
    //   33: aload_1
    //   34: invokeinterface 64 1 0
    //   39: checkcast 47	com/zving/preloader/facade/FilterFacade
    //   42: astore_0
    //   43: aload_0
    //   44: invokevirtual 70	com/zving/preloader/facade/FilterFacade:unloadClass	()V
    //   47: aload_1
    //   48: invokeinterface 73 1 0
    //   53: ifne -20 -> 33
    //   56: invokestatic 77	com/zving/preloader/facade/ServletFacade:getInstances	()Ljava/util/HashMap;
    //   59: invokevirtual 52	java/util/HashMap:values	()Ljava/util/Collection;
    //   62: invokeinterface 58 1 0
    //   67: astore_1
    //   68: goto +17 -> 85
    //   71: aload_1
    //   72: invokeinterface 64 1 0
    //   77: checkcast 78	com/zving/preloader/facade/ServletFacade
    //   80: astore_0
    //   81: aload_0
    //   82: invokevirtual 80	com/zving/preloader/facade/ServletFacade:unloadClass	()V
    //   85: aload_1
    //   86: invokeinterface 73 1 0
    //   91: ifne -20 -> 71
    //   94: invokestatic 81	com/zving/preloader/facade/ServletContextListenerFacade:getInstance	()Lcom/zving/preloader/facade/ServletContextListenerFacade;
    //   97: ifnull +16 -> 113
    //   100: invokestatic 81	com/zving/preloader/facade/ServletContextListenerFacade:getInstance	()Lcom/zving/preloader/facade/ServletContextListenerFacade;
    //   103: aconst_null
    //   104: invokevirtual 87	com/zving/preloader/facade/ServletContextListenerFacade:contextDestroyed	(Ljavax/servlet/ServletContextEvent;)V
    //   107: invokestatic 81	com/zving/preloader/facade/ServletContextListenerFacade:getInstance	()Lcom/zving/preloader/facade/ServletContextListenerFacade;
    //   110: invokevirtual 91	com/zving/preloader/facade/ServletContextListenerFacade:unloadClass	()V
    //   113: invokestatic 92	com/zving/preloader/facade/HttpSessionListenerFacade:getInstance	()Lcom/zving/preloader/facade/HttpSessionListenerFacade;
    //   116: ifnull +9 -> 125
    //   119: invokestatic 92	com/zving/preloader/facade/HttpSessionListenerFacade:getInstance	()Lcom/zving/preloader/facade/HttpSessionListenerFacade;
    //   122: invokevirtual 97	com/zving/preloader/facade/HttpSessionListenerFacade:unloadClass	()V
    //   125: getstatic 98	com/zving/preloader/PreClassLoader:err	Ljava/io/PrintStream;
    //   128: invokestatic 103	java/lang/System:setErr	(Ljava/io/PrintStream;)V
    //   131: getstatic 107	com/zving/preloader/PreClassLoader:out	Ljava/io/PrintStream;
    //   134: invokestatic 108	java/lang/System:setOut	(Ljava/io/PrintStream;)V
    //   137: new 111	com/zving/preloader/ReferenceCleaner
    //   140: dup
    //   141: invokestatic 113	com/zving/preloader/PreClassLoader:getInstance	()Lcom/zving/preloader/PreClassLoader;
    //   144: invokespecial 116	com/zving/preloader/ReferenceCleaner:	(Lcom/zving/preloader/PreClassLoader;)V
    //   147: astore_0
    //   148: aload_0
    //   149: invokevirtual 119	com/zving/preloader/ReferenceCleaner:clearReferences	()V
    //   152: invokestatic 122	com/zving/preloader/PreClassLoader:destory	()V
    //   155: invokestatic 125	java/lang/System:gc	()V
    //   158: invokestatic 128	com/zving/preloader/PreClassLoader:reloadAll	()V
    //   161: invokestatic 81	com/zving/preloader/facade/ServletContextListenerFacade:getInstance	()Lcom/zving/preloader/facade/ServletContextListenerFacade;
    //   164: invokevirtual 131	com/zving/preloader/facade/ServletContextListenerFacade:loadListener	()V
    //   167: invokestatic 81	com/zving/preloader/facade/ServletContextListenerFacade:getInstance	()Lcom/zving/preloader/facade/ServletContextListenerFacade;
    //   170: aconst_null
    //   171: invokevirtual 134	com/zving/preloader/facade/ServletContextListenerFacade:contextInitialized	(Ljavax/servlet/ServletContextEvent;)V
    //   174: invokestatic 92	com/zving/preloader/facade/HttpSessionListenerFacade:getInstance	()Lcom/zving/preloader/facade/HttpSessionListenerFacade;
    //   177: invokevirtual 137	com/zving/preloader/facade/HttpSessionListenerFacade:loadListener	()V
    //   180: invokestatic 46	com/zving/preloader/facade/FilterFacade:getInstances	()Ljava/util/HashMap;
    //   183: invokevirtual 52	java/util/HashMap:values	()Ljava/util/Collection;
    //   186: invokeinterface 58 1 0
    //   191: astore_2
    //   192: goto +17 -> 209
    //   195: aload_2
    //   196: invokeinterface 64 1 0
    //   201: checkcast 47	com/zving/preloader/facade/FilterFacade
    //   204: astore_1
    //   205: aload_1
    //   206: invokevirtual 138	com/zving/preloader/facade/FilterFacade:loadFilter	()V
    //   209: aload_2
    //   210: invokeinterface 73 1 0
    //   215: ifne -20 -> 195
    //   218: invokestatic 77	com/zving/preloader/facade/ServletFacade:getInstances	()Ljava/util/HashMap;
    //   221: invokevirtual 52	java/util/HashMap:values	()Ljava/util/Collection;
    //   224: invokeinterface 58 1 0
    //   229: astore_2
    //   230: goto +17 -> 247
    //   233: aload_2
    //   234: invokeinterface 64 1 0
    //   239: checkcast 78	com/zving/preloader/facade/ServletFacade
    //   242: astore_1
    //   243: aload_1
    //   244: invokevirtual 141	com/zving/preloader/facade/ServletFacade:loadServlet	()V
    //   247: aload_2
    //   248: invokeinterface 73 1 0
    //   253: ifne -20 -> 233
    //   256: getstatic 32	java/lang/System:out	Ljava/io/PrintStream;
    //   259: ldc -112
    //   261: invokevirtual 40	java/io/PrintStream:println	(Ljava/lang/String;)V
    //   264: goto +34 -> 298
    //   267: astore_0
    //   268: aload_0
    //   269: invokevirtual 146	java/lang/Throwable:printStackTrace	()V
    //   272: iconst_0
    //   273: putstatic 12	com/zving/preloader/Reloader:isReloading	Z
    //   276: getstatic 19	com/zving/preloader/Reloader:lock	Ljava/util/concurrent/locks/ReentrantLock;
    //   279: invokevirtual 151	java/util/concurrent/locks/ReentrantLock:unlock	()V
    //   282: goto +26 -> 308
    //   285: astore_3
    //   286: iconst_0
    //   287: putstatic 12	com/zving/preloader/Reloader:isReloading	Z
    //   290: getstatic 19	com/zving/preloader/Reloader:lock	Ljava/util/concurrent/locks/ReentrantLock;
    //   293: invokevirtual 151	java/util/concurrent/locks/ReentrantLock:unlock	()V
    //   296: aload_3
    //   297: athrow
    //   298: iconst_0
    //   299: putstatic 12	com/zving/preloader/Reloader:isReloading	Z
    //   302: getstatic 19	com/zving/preloader/Reloader:lock	Ljava/util/concurrent/locks/ReentrantLock;
    //   305: invokevirtual 151	java/util/concurrent/locks/ReentrantLock:unlock	()V
    //   308: return
    // Line number table:
    //   Java source line #22	-> byte code offset #0
    //   Java source line #24	-> byte code offset #6
    //   Java source line #25	-> byte code offset #10
    //   Java source line #28	-> byte code offset #18
    //   Java source line #29	-> byte code offset #43
    //   Java source line #28	-> byte code offset #47
    //   Java source line #31	-> byte code offset #56
    //   Java source line #32	-> byte code offset #81
    //   Java source line #31	-> byte code offset #85
    //   Java source line #34	-> byte code offset #94
    //   Java source line #35	-> byte code offset #100
    //   Java source line #36	-> byte code offset #107
    //   Java source line #38	-> byte code offset #113
    //   Java source line #39	-> byte code offset #119
    //   Java source line #42	-> byte code offset #125
    //   Java source line #43	-> byte code offset #131
    //   Java source line #45	-> byte code offset #137
    //   Java source line #46	-> byte code offset #148
    //   Java source line #47	-> byte code offset #152
    //   Java source line #49	-> byte code offset #155
    //   Java source line #52	-> byte code offset #158
    //   Java source line #54	-> byte code offset #161
    //   Java source line #55	-> byte code offset #167
    //   Java source line #56	-> byte code offset #174
    //   Java source line #57	-> byte code offset #180
    //   Java source line #58	-> byte code offset #205
    //   Java source line #57	-> byte code offset #209
    //   Java source line #60	-> byte code offset #218
    //   Java source line #61	-> byte code offset #243
    //   Java source line #60	-> byte code offset #247
    //   Java source line #63	-> byte code offset #256
    //   Java source line #64	-> byte code offset #267
    //   Java source line #65	-> byte code offset #268
    //   Java source line #67	-> byte code offset #272
    //   Java source line #68	-> byte code offset #276
    //   Java source line #66	-> byte code offset #285
    //   Java source line #67	-> byte code offset #286
    //   Java source line #68	-> byte code offset #290
    //   Java source line #69	-> byte code offset #296
    //   Java source line #67	-> byte code offset #298
    //   Java source line #68	-> byte code offset #302
    //   Java source line #70	-> byte code offset #308
    // Local variable table:
    //   start	length	slot	name	signature
    //   42	2	0	ff	com.zving.preloader.facade.FilterFacade
    //   80	2	0	sf	com.zving.preloader.facade.ServletFacade
    //   147	2	0	rc	ReferenceCleaner
    //   267	2	0	t	Throwable
    //   29	57	1	localIterator1	java.util.Iterator
    //   204	2	1	ff	com.zving.preloader.facade.FilterFacade
    //   242	2	1	sf	com.zving.preloader.facade.ServletFacade
    //   191	57	2	localIterator2	java.util.Iterator
    //   285	12	3	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   6	264	267	java/lang/Throwable
    //   6	272	285	finally
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy