Author: asoldano
Date: 2014-01-30 12:08:21 -0500 (Thu, 30 Jan 2014)
New Revision: 18293
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/classloading/ClassLoaderProvider.java
Log:
[JBWS-3755] Adding ClassLoaderProvider.isSet() static method to tell if a custom
classloader provider has been installed (which is usually done during boot of the AS
only)
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/classloading/ClassLoaderProvider.java
===================================================================
---
spi/trunk/src/main/java/org/jboss/wsf/spi/classloading/ClassLoaderProvider.java 2014-01-30
13:18:00 UTC (rev 18292)
+++
spi/trunk/src/main/java/org/jboss/wsf/spi/classloading/ClassLoaderProvider.java 2014-01-30
17:08:21 UTC (rev 18293)
@@ -53,16 +53,23 @@
return getContextClassLoader();
}
};
+ private static volatile boolean set = false;
public static void setDefaultProvider(ClassLoaderProvider p)
{
provider = p;
+ set = true;
}
public static ClassLoaderProvider getDefaultProvider()
{
return provider;
}
+
+ public static boolean isSet()
+ {
+ return set;
+ }
/**
* Return the ClassLoader instance having visibility over the application server ws
subsystem only
Show replies by date