Package org.jboss.el.cache
Class FactoryFinderCache
- java.lang.Object
-
- org.jboss.el.cache.FactoryFinderCache
-
public class FactoryFinderCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
FactoryFinderCache.CacheKey
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<FactoryFinderCache.CacheKey,java.lang.String>
CLASS_CACHE
-
Constructor Summary
Constructors Constructor Description FactoryFinderCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addCacheEntry(java.lang.ClassLoader classLoader, java.lang.String factoryId, java.lang.String factoryClassName)
Called by the container at deployment time to set the name of a given factory, to remove the need for the implementation to look it up on every call.static void
clearClassLoader(java.lang.ClassLoader classLoader)
This should be called by the container on undeploy to remove all references to the given class loader from the cache.static java.lang.String
loadImplementationClassName(java.lang.String factoryId, java.lang.ClassLoader classLoader)
-
-
-
Field Detail
-
CLASS_CACHE
private static final java.util.Map<FactoryFinderCache.CacheKey,java.lang.String> CLASS_CACHE
-
-
Method Detail
-
addCacheEntry
public static void addCacheEntry(java.lang.ClassLoader classLoader, java.lang.String factoryId, java.lang.String factoryClassName)
Called by the container at deployment time to set the name of a given factory, to remove the need for the implementation to look it up on every call.- Parameters:
classLoader
- The deployments class loaderfactoryId
- The type of factory that is being recorded (at this stage only javax.el.ExpressionFactory has any effectfactoryClassName
- The name of the factory class that is present in the deployment, or null if none is present
-
clearClassLoader
public static void clearClassLoader(java.lang.ClassLoader classLoader)
This should be called by the container on undeploy to remove all references to the given class loader from the cache.- Parameters:
classLoader
- The class loader to remove
-
loadImplementationClassName
public static java.lang.String loadImplementationClassName(java.lang.String factoryId, java.lang.ClassLoader classLoader)
-
-