Package com.github.dozermapper.core.el
Class ELExpressionFactory
- java.lang.Object
-
- com.github.dozermapper.core.el.ELExpressionFactory
-
public final class ELExpressionFactory extends Object
ResolvesExpressionFactory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleanisSupported()Checks whether jakarta.el is on the classpath and aExpressionFactorycan be constructedstatic BooleanisSupported(ClassLoader classLoader)Checks whether jakarta.el is on the classpath and aExpressionFactorycan be constructedstatic jakarta.el.ExpressionFactorynewInstance()CallsExpressionFactory.newInstance()directly without any classpath checkingstatic jakarta.el.ExpressionFactorynewInstance(ClassLoader classLoader)Constructs aExpressionFactoryviaThread.currentThread().getContextClassLoader()or the providedClassLoader
-
-
-
Method Detail
-
isSupported
public static Boolean isSupported()
Checks whether jakarta.el is on the classpath and aExpressionFactorycan be constructed- Returns:
- if jakarta.el can be used
-
isSupported
public static Boolean isSupported(ClassLoader classLoader)
Checks whether jakarta.el is on the classpath and aExpressionFactorycan be constructed- Parameters:
classLoader- class loader to resolveExpressionFactory- Returns:
- if jakarta.el can be used
-
newInstance
public static jakarta.el.ExpressionFactory newInstance(ClassLoader classLoader) throws IllegalStateException
Constructs aExpressionFactoryviaThread.currentThread().getContextClassLoader()or the providedClassLoader- Parameters:
classLoader- class loader to resolveExpressionFactory- Returns:
ExpressionFactoryinstance- Throws:
IllegalStateException- if jakarta.el is not on the class path or aExpressionFactoryinstance could not be constructed
-
newInstance
public static jakarta.el.ExpressionFactory newInstance()
CallsExpressionFactory.newInstance()directly without any classpath checking- Returns:
ExpressionFactoryinstance
-
-