public class ResourceELResolver
extends javax.el.ELResolver
| Constructor and Description |
|---|
ResourceELResolver() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getCommonPropertyType(javax.el.ELContext context,
Object base) |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(javax.el.ELContext context,
Object base) |
Class<?> |
getType(javax.el.ELContext context,
Object base,
Object property) |
Object |
getValue(javax.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(javax.el.ELContext context,
Object base,
Object property) |
void |
setValue(javax.el.ELContext context,
Object base,
Object property,
Object value)
This is basically a no-op.
|
public Object getValue(javax.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 ELException
Resource
instance, call ELContext.setPropertyResolved(true) and return
the result of Resource.getRequestPath()
getValue in class javax.el.ELResolverELResolver.getValue(javax.el.ELContext, Object, Object)public Class<?> getType(javax.el.ELContext context, Object base, Object property)
getType in class javax.el.ELResolvernull as this resolver only performs lookupsjavax.el.PropertyNotFoundException - if base and property are nullpublic void setValue(javax.el.ELContext context,
Object base,
Object property,
Object value)
setValue in class javax.el.ELResolverjavax.el.PropertyNotFoundException - if base and property are nullpublic boolean isReadOnly(javax.el.ELContext context,
Object base,
Object property)
isReadOnly in class javax.el.ELResolverfalse (basically ignored by the EL system)javax.el.PropertyNotFoundException - if base and property are nullpublic Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context, Object base)
getFeatureDescriptors in class javax.el.ELResolvernull - there is no way to query the
ResourceManager for all known resourcesCopyright © 2010–2019 JBoss by Red Hat. All rights reserved.