Package org.eclnt.jsfserver.util
Class CCELResolver
java.lang.Object
jakarta.el.ELResolver
org.eclnt.jsfserver.util.CCELResolver
public class CCELResolver
extends jakarta.el.ELResolver
This class wraps the default expression resolver in order to wrap the
getting/setting functions with some additional functions.
(1.) Interface
(2.) Interface
(3.) Hot Deployment Management.
(4.) Possibility to (re-) set a managed bean at runtime.
(5.) Before setting property values the interface
The functions of this class were part of the CaptainCasa-specific variable and property resolver with JSF 1.1 - due to changed from JSF 1.1 to JSF 1.2 they were shifted into this class...
(1.) Interface
IPropertyTypeResolver during getType(..) call.
(2.) Interface
IAcceleratedPropertyAccess during getValue(..) call.
(3.) Hot Deployment Management.
(4.) Possibility to (re-) set a managed bean at runtime.
(5.) Before setting property values the interface
IPropertyValueConverter
is called, if available.
The functions of this class were part of the CaptainCasa-specific variable and property resolver with JSF 1.1 - due to changed from JSF 1.1 to JSF 1.2 they were shifted into this class...
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefault implementation with "empty code".static interfaceNotification of certain events within the resolving of expressions... -
Field Summary
Fields inherited from class jakarta.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE -
Constructor Summary
ConstructorsConstructorDescriptionSepcial constructor to be used in mini server environment.CCELResolver(jakarta.el.ELResolver delegateTo) Default constructor to be used in normal Servelt/JSF environment. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic voiddefineInstanceToBeUsed(String name, Object instance) Allows to set a managed bean at runtime.Class<?>getCommonPropertyType(jakarta.el.ELContext arg0, Object arg1) static jakarta.el.MethodExpressionstatic jakarta.el.ValueExpressiongetFeatureDescriptors(jakarta.el.ELContext arg0, Object arg1) Class<?>static voidbooleanisReadOnly(jakarta.el.ELContext arg0, Object arg1, Object arg2) static voidpassCurrentMethodExpressionBegin(jakarta.el.MethodExpression currentMethodExpression) static voidstatic voidpassCurrentValueExpressionBegin(jakarta.el.ValueExpression currentValueExpression) static voidstatic voidstatic voidvoidstatic voidMethods inherited from class jakarta.el.ELResolver
convertToType, invoke
-
Constructor Details
-
CCELResolver
public CCELResolver(jakarta.el.ELResolver delegateTo) Default constructor to be used in normal Servelt/JSF environment. -
CCELResolver
public CCELResolver()Sepcial constructor to be used in mini server environment. In this scenario there is no delegation possibility. And in this scenario all expressions need to be resolved through the CCELResolver (i.e. there is NO resolution of e.g. "d" by the resolver of the servlet/JSF environment.
-
-
Method Details
-
initListener
-
passCurrentValueExpressionBegin
public static void passCurrentValueExpressionBegin(jakarta.el.ValueExpression currentValueExpression) -
passCurrentMethodExpressionBegin
public static void passCurrentMethodExpressionBegin(jakarta.el.MethodExpression currentMethodExpression) -
passCurrentMethodExpressionEnd
public static void passCurrentMethodExpressionEnd() -
passCurrentValueExpressionEnd
public static void passCurrentValueExpressionEnd() -
getCurrentValueExpression
public static jakarta.el.ValueExpression getCurrentValueExpression() -
getCurrentMethodExpression
public static jakarta.el.MethodExpression getCurrentMethodExpression() -
getType
public Class<?> getType(jakarta.el.ELContext context, Object base, Object property) throws NullPointerException, jakarta.el.PropertyNotFoundException, jakarta.el.ELException - Specified by:
getTypein classjakarta.el.ELResolver- Throws:
NullPointerExceptionjakarta.el.PropertyNotFoundExceptionjakarta.el.ELException
-
getValue
public Object getValue(jakarta.el.ELContext context, Object base, Object property) throws NullPointerException, jakarta.el.PropertyNotFoundException, jakarta.el.ELException - Specified by:
getValuein classjakarta.el.ELResolver- Throws:
NullPointerExceptionjakarta.el.PropertyNotFoundExceptionjakarta.el.ELException
-
setValue
public void setValue(jakarta.el.ELContext context, Object base, Object property, Object value) throws NullPointerException, jakarta.el.PropertyNotFoundException, jakarta.el.PropertyNotWritableException, jakarta.el.ELException - Specified by:
setValuein classjakarta.el.ELResolver- Throws:
NullPointerExceptionjakarta.el.PropertyNotFoundExceptionjakarta.el.PropertyNotWritableExceptionjakarta.el.ELException
-
isReadOnly
public boolean isReadOnly(jakarta.el.ELContext arg0, Object arg1, Object arg2) throws NullPointerException, jakarta.el.PropertyNotFoundException, jakarta.el.ELException - Specified by:
isReadOnlyin classjakarta.el.ELResolver- Throws:
NullPointerExceptionjakarta.el.PropertyNotFoundExceptionjakarta.el.ELException
-
getCommonPropertyType
- Specified by:
getCommonPropertyTypein classjakarta.el.ELResolver
-
getFeatureDescriptors
- Specified by:
getFeatureDescriptorsin classjakarta.el.ELResolver
-
defineInstanceToBeUsed
Allows to set a managed bean at runtime. This method may be used to explicitly reset central managed beans during runtime. E.g. you may exchange the central dispatcher object (typically "#{d}"), in case you use this dispatcher. -
registerThreadWithErrorFalse
public static void registerThreadWithErrorFalse() -
unregisterThreadWithErrorFalse
public static void unregisterThreadWithErrorFalse() -
checkIfThreandWithErrorFalse
public static boolean checkIfThreandWithErrorFalse() -
resetBuffers
public static void resetBuffers()
-