|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.navel.beans.ProxyDescriptor
public class ProxyDescriptor
Collects the introspection and reflection data for the proxy in one place, where it can be safely shared. Also tucks away the serialization problems with introspection data which is not serializable. Despite the transient members that cannot be flagged as final, this class should be considered effectively immutable.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Class<?> |
getPrimaryType()
|
java.util.Map<java.lang.String,java.beans.PropertyDescriptor> |
getPropertyDescriptors()
|
java.util.Set<java.lang.Class<?>> |
getProxiedInterfaces()
|
int |
hashCode()
|
static void |
resetToStringTemplate()
Restore the default format template for toString() . |
static void |
setToStringTemplate(java.lang.String toStringTemplate)
Allows callers to specify their own template for use with String.format(String, Object...) which excepts two arguments. |
java.lang.String |
toString()
|
void |
validateObject()
Used during de-serialization to restore the non serializable instrospection metadata from the JavaBeans API. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static void setToStringTemplate(java.lang.String toStringTemplate)
String.format(String, Object...)
which excepts two arguments.
Collection.toString()
call
toStringTemplate
- Custom format template.public static void resetToStringTemplate()
toString()
.
public java.lang.Class<?> getPrimaryType()
public java.util.Set<java.lang.Class<?>> getProxiedInterfaces()
public java.util.Map<java.lang.String,java.beans.PropertyDescriptor> getPropertyDescriptors()
PropertyDescriptor
values for all of the proxy's
interfaces keyed by each property's name. The map returned is not
modifiable and will throw an exception if an alteration is
attempted.public void validateObject() throws java.io.InvalidObjectException
validateObject
in interface java.io.ObjectInputValidation
java.io.InvalidObjectException
ObjectInputValidation.validateObject()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |