Package javax.el
Class FactoryFinder
- java.lang.Object
-
- javax.el.FactoryFinder
-
class FactoryFinder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FactoryFinder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.Objectfind(java.lang.String factoryId, java.lang.String fallbackClassName, java.util.Properties properties)Finds the implementationClassobject for the given factory name, or if that fails, finds theClassobject for the given fallback class name.private static java.lang.ObjectnewInstance(java.lang.String className, java.lang.ClassLoader classLoader, java.util.Properties properties)Creates an instance of the specified class using the specifiedClassLoaderobject.
-
-
-
Method Detail
-
newInstance
private static java.lang.Object newInstance(java.lang.String className, java.lang.ClassLoader classLoader, java.util.Properties properties)Creates an instance of the specified class using the specifiedClassLoaderobject.- Throws:
ELException- if the given class could not be found or could not be instantiated
-
find
static java.lang.Object find(java.lang.String factoryId, java.lang.String fallbackClassName, java.util.Properties properties)Finds the implementationClassobject for the given factory name, or if that fails, finds theClassobject for the given fallback class name. The arguments supplied must be used in order. If using the first argument is successful, the second one will not be used.This method is package private so that this code can be shared.
- Parameters:
factoryId- the name of the factory to find, which is a system propertyfallbackClassName- the implementation class name, which is to be used only if nothing else is found;nullto indicate that there is no fallback class name- Returns:
- the
Classobject of the specified message factory; may not benull - Throws:
ELException- if there is an error
-
-