⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xworkobjectpropertyaccessor.java

📁 在Struts2中的jar包xwork的源代码.版本为2.0.7
💻 JAVA
字号:
/* * Copyright (c) 2002-2006 by OpenSymphony * All rights reserved. */package com.opensymphony.xwork2.util;import ognl.ObjectPropertyAccessor;import ognl.OgnlException;import java.util.Map;/** * @author Gabe */public class XWorkObjectPropertyAccessor extends ObjectPropertyAccessor {    public Object getProperty(Map context, Object target, Object oname)            throws OgnlException {        //set the last set objects in the context        //so if the next objects accessed are        //Maps or Collections they can use the information        //to determine conversion types        context.put(XWorkConverter.LAST_BEAN_CLASS_ACCESSED, target.getClass());        context.put(XWorkConverter.LAST_BEAN_PROPERTY_ACCESSED, oname.toString());        OgnlContextState.updateCurrentPropertyPath(context, oname);        return super.getProperty(context, target, oname);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -