Expression Language 2.2 API 1.0.2.Final-redhat-1

org.jboss.el.cache
Class FactoryFinderCache

java.lang.Object
  extended by org.jboss.el.cache.FactoryFinderCache

public class FactoryFinderCache
extends Object

Author:
Stuart Douglas

Constructor Summary
FactoryFinderCache()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryFinderCache

public FactoryFinderCache()
Method Detail

addCacheEntry

public 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.

Parameters:
classLoader - The deployments class loader
factoryId - The type of factory that is being recorded (at this stage only javax.el.ExpressionFactory has any effect
factoryClassName - The name of the factory class that is present in the deployment, or null if none is present

clearClassLoader

public 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.

Parameters:
classLoader - The class loader to remove

loadImplementationClassName

public static String loadImplementationClassName(String factoryId,
                                                 ClassLoader classLoader)

Expression Language 2.2 API 1.0.2.Final-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.