|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.keepondreaming.xml.ProxyObjectStrategy
public class ProxyObjectStrategy
This strategy is based upon dynamic proxies. Created objects will
be dynamic proxies and member access is handled via calls to
the methods offered by the added interface ClassProxyAccess
$Author: wintermond $
$Date: 2005/07/10 18:40:58 $
$Log: ProxyObjectStrategy.java,v $
Revision 1.3 2005/07/10 18:40:58 wintermond
javadoc
Revision 1.2 2005/07/09 10:01:34 wintermond
javadoc
| Constructor Summary | |
|---|---|
ProxyObjectStrategy()
Default constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
createInstance(java.lang.Class clazz)
Creates an instance of the type clazz. |
java.lang.String |
getMethodName(java.lang.Class clazz,
java.lang.String attribute,
boolean set)
Returns the get/set method name for an attribute read by the parser |
void |
init()
Restore initial state |
java.lang.Class |
resolveInterface(java.lang.Object object)
Determines the interfaces this object was created upon. |
void |
setAttribute(java.lang.Object target,
java.lang.String attribute,
java.lang.Object value)
Sets the attribute on an instance returned via ObjectStrategy.createInstance(Class)
target and attribute are guaranteed to be not null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyObjectStrategy()
| Method Detail |
|---|
public java.lang.Object createInstance(java.lang.Class clazz)
ObjectStrategyclazz.
clazz is never null
createInstance in interface ObjectStrategyclazz.
public void setAttribute(java.lang.Object target,
java.lang.String attribute,
java.lang.Object value)
ObjectStrategyObjectStrategy.createInstance(Class)
target and attribute are guaranteed to be not null.
value is guaranteed to be not null if called by the parser
setAttribute in interface ObjectStrategytarget - Object to set the attribute toattribute - Attribute namevalue - value to setpublic void init()
ObjectStrategy
init in interface ObjectStrategypublic java.lang.Class resolveInterface(java.lang.Object object)
ObjectStrategy
resolveInterface in interface ObjectStrategyobject - Object created by ObjectStrategy.createInstance(Class) of this object
public java.lang.String getMethodName(java.lang.Class clazz,
java.lang.String attribute,
boolean set)
ObjectStrategy
getMethodName in interface ObjectStrategyset - true if set method is requested, false if get
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||