public class FactoryFinderCache extends Object
Constructor and Description |
---|
FactoryFinderCache() |
Modifier and Type | Method and Description |
---|---|
static void |
addCacheEntry(ClassLoader classLoader,
String factoryId,
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(ClassLoader classLoader)
This should be called by the container on undeploy to remove all references to the given class loader
from the cache.
|
static String |
loadImplementationClassName(String factoryId,
ClassLoader classLoader) |
public static void addCacheEntry(ClassLoader classLoader, String factoryId, String factoryClassName)
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 presentpublic static void clearClassLoader(ClassLoader classLoader)
classLoader
- The class loader to removepublic static String loadImplementationClassName(String factoryId, ClassLoader classLoader)
Copyright © 2018 JBoss by Red Hat. All rights reserved.