站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

DelegatingPropertyResolver - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.faces.el
Class DelegatingPropertyResolver

java.lang.Object
  extended byPropertyResolver
      extended byorg.jboss.portal.faces.el.DelegatingPropertyResolver

public class DelegatingPropertyResolver
extends PropertyResolver

A property resolver that provide fine grained configuration of the resolving mechanism.

Version:
$Revision: 5448 $
Author:
Julien Viet
See Also:
Serialized Form

Field Summary
private  PropertyResolver delegate
          .
private static org.apache.log4j.Logger log
          .
private static java.util.Map resolverMap
          .
 
Constructor Summary
DelegatingPropertyResolver(PropertyResolver delegate)
           
 
Method Summary
 java.lang.Class getType(java.lang.Object base, int index)
           
 java.lang.Class getType(java.lang.Object base, java.lang.Object property)
           
 java.lang.Object getValue(java.lang.Object base, int index)
           
 java.lang.Object getValue(java.lang.Object base, java.lang.Object property)
           
 boolean isReadOnly(java.lang.Object base, int index)
           
 boolean isReadOnly(java.lang.Object base, java.lang.Object property)
           
static void registerTypeDef(TypeDef typeDef)
           
private  TypeDef resolveTypeDef(java.lang.Object base)
          Resolve the type def from the provided object.
 void setValue(java.lang.Object base, int index, java.lang.Object value)
           
 void setValue(java.lang.Object base, java.lang.Object property, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log
.


delegate

private final PropertyResolver delegate
.


resolverMap

private static java.util.Map resolverMap
.

Constructor Detail

DelegatingPropertyResolver

public DelegatingPropertyResolver(PropertyResolver delegate)
Method Detail

registerTypeDef

public static void registerTypeDef(TypeDef typeDef)

getType

public java.lang.Class getType(java.lang.Object base,
                               int index)
                        throws EvaluationException,
                               PropertyNotFoundException
Throws:
EvaluationException
PropertyNotFoundException

getType

public java.lang.Class getType(java.lang.Object base,
                               java.lang.Object property)
                        throws EvaluationException,
                               PropertyNotFoundException
Throws:
EvaluationException
PropertyNotFoundException

getValue

public java.lang.Object getValue(java.lang.Object base,
                                 int index)
                          throws EvaluationException,
                                 PropertyNotFoundException
Throws:
EvaluationException
PropertyNotFoundException

getValue

public java.lang.Object getValue(java.lang.Object base,
                                 java.lang.Object property)
                          throws EvaluationException,
                                 PropertyNotFoundException
Throws:
EvaluationException
PropertyNotFoundException

isReadOnly

public boolean isReadOnly(java.lang.Object base,
                          int index)
                   throws EvaluationException,
                          PropertyNotFoundException
Throws:
EvaluationException
PropertyNotFoundException

isReadOnly

public boolean isReadOnly(java.lang.Object base,
                          java.lang.Object property)
                   throws EvaluationException,
                          PropertyNotFoundException
Throws:
EvaluationException
PropertyNotFoundException

setValue

public void setValue(java.lang.Object base,
                     int index,
                     java.lang.Object value)
              throws EvaluationException,
                     PropertyNotFoundException
Throws:
EvaluationException
PropertyNotFoundException

setValue

public void setValue(java.lang.Object base,
                     java.lang.Object property,
                     java.lang.Object value)
              throws EvaluationException,
                     PropertyNotFoundException
Throws:
EvaluationException
PropertyNotFoundException

resolveTypeDef

private TypeDef resolveTypeDef(java.lang.Object base)
Resolve the type def from the provided object. First the class name is used to lookup a type def. If none is found then the implemented interfaces are examined to see if one can provide a type def.

Parameters:
base - the object to resolve the type def
Returns:
the type def if found, null otherwise