• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DefaultResolver类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中org.apache.commons.beanutils.expression.DefaultResolver的典型用法代码示例。如果您正苦于以下问题:Java DefaultResolver类的具体用法?Java DefaultResolver怎么用?Java DefaultResolver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DefaultResolver类属于org.apache.commons.beanutils.expression包,在下文中一共展示了DefaultResolver类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getItemProperty

点赞 3

import org.apache.commons.beanutils.expression.DefaultResolver; //导入依赖的package包/类
@Override
public Property getItemProperty(Object id) {
    final String propertyName = id.toString();
    if (getDynaBean().getDynaClass().getDynaProperty(propertyName) == null) {
        DefaultResolver defaultResolver = new DefaultResolver();
        if (!(defaultResolver.hasNested(propertyName) || defaultResolver.
                isIndexed(propertyName))) {
            // Lazy query container detects some debug properties via 
            // Item!! 
            return null;
        }
    }
    DynaProperty prop = propertyIdToProperty.get(id);
    if (prop == null) {
        prop = new DynaProperty(propertyName);
        propertyIdToProperty.put(id, prop);
    }
    return prop;
}
 

开发者ID:viritin,
项目名称:viritin,
代码行数:20,
代码来源:DynaBeanItem.java

示例2: setResolver

点赞 1

import org.apache.commons.beanutils.expression.DefaultResolver; //导入依赖的package包/类
/**
 * Configure the {@link Resolver} implementation used by BeanUtils.
 * <p>
 * The {@link Resolver} handles the <i>property name</i>
 * expressions and the implementation in use effectively
 * controls the dialect of the <i>expression language</i>
 * that BeanUtils recongnises.
 * <p>
 * {@link DefaultResolver} is the default implementation used.
 *
 * @param resolver The property expression resolver.
 * @since 1.8.0
 */
public void setResolver(final Resolver resolver) {
    if (resolver == null) {
        this.resolver = new DefaultResolver();
    } else {
        this.resolver = resolver;
    }
}
 

开发者ID:yippeesoft,
项目名称:NotifyTools,
代码行数:21,
代码来源:PropertyUtilsBean.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)