com.opensymphony.xwork2.ognl.ObjectProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xwork Show documentation
Show all versions of xwork Show documentation
XWork is an command-pattern framework that is used to power WebWork
as well as other applications. XWork provides an Inversion of Control
container, a powerful expression language, data type conversion,
validation, and pluggable configuration.
/*
* Copyright (c) 2002-2006 by OpenSymphony
* All rights reserved.
*/
package com.opensymphony.xwork2.ognl;
/**
* An Object to use within OGNL to proxy other Objects
* usually Collections that you set in a different place
* on the ValueStack but want to retain the context information
* about where they previously were.
*
* @author Gabe
*/
public class ObjectProxy {
private Object value;
private Class lastClassAccessed;
private String lastPropertyAccessed;
public Class getLastClassAccessed() {
return lastClassAccessed;
}
public void setLastClassAccessed(Class lastClassAccessed) {
this.lastClassAccessed = lastClassAccessed;
}
public String getLastPropertyAccessed() {
return lastPropertyAccessed;
}
public void setLastPropertyAccessed(String lastPropertyAccessed) {
this.lastPropertyAccessed = lastPropertyAccessed;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
}