public class ResourceELResolver
extends jakarta.el.ELResolver
| Constructor and Description |
|---|
ResourceELResolver() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getCommonPropertyType(jakarta.el.ELContext context,
Object base) |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(jakarta.el.ELContext context,
Object base) |
Class<?> |
getType(jakarta.el.ELContext context,
Object base,
Object property) |
Object |
getValue(jakarta.el.ELContext context,
Object base,
Object property)
If base and property are not
null and base is an instance of ResourceHandler, perform the
following:
If property doesn't contain : treat property as the resource name and pass
property to ResourceHandler.createResource(String)
If property contains a single : treat the content before the : as the
library name, and the content after the : to be the resource name and pass both to
ResourceHandler.createResource(String, String)
If property contains more than one : then throw a ELException
If one of the above steps resulted in the creation of a Resource instance, call
ELContext.setPropertyResolved(true) and return the result of
Resource.getRequestPath()
|
boolean |
isReadOnly(jakarta.el.ELContext context,
Object base,
Object property) |
void |
setValue(jakarta.el.ELContext context,
Object base,
Object property,
Object value)
This is basically a no-op.
|
public Object getValue(jakarta.el.ELContext context, Object base, Object property)
null and base is an instance of ResourceHandler, perform the
following:
property doesn't contain : treat property as the resource name and pass
property to ResourceHandler.createResource(String)property contains a single : treat the content before the : as the
library name, and the content after the : to be the resource name and pass both to
ResourceHandler.createResource(String, String)property contains more than one : then throw a ELExceptionResource instance, call
ELContext.setPropertyResolved(true) and return the result of
Resource.getRequestPath()getValue in class jakarta.el.ELResolverELResolver.getValue(jakarta.el.ELContext, Object, Object)public Class<?> getType(jakarta.el.ELContext context, Object base, Object property)
getType in class jakarta.el.ELResolvernull as this resolver only performs lookupsjakarta.el.PropertyNotFoundException - if base and property are nullpublic void setValue(jakarta.el.ELContext context,
Object base,
Object property,
Object value)
setValue in class jakarta.el.ELResolverjakarta.el.PropertyNotFoundException - if base and property are nullpublic boolean isReadOnly(jakarta.el.ELContext context,
Object base,
Object property)
isReadOnly in class jakarta.el.ELResolverfalse (basically ignored by the EL system)jakarta.el.PropertyNotFoundException - if base and property are nullpublic Iterator<FeatureDescriptor> getFeatureDescriptors(jakarta.el.ELContext context, Object base)
getFeatureDescriptors in class jakarta.el.ELResolvernull - there is no way to query the ResourceManager for all known resourcesCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.