org.ckkloverdos.reflect
Class MethodReflectiveAccessor

java.lang.Object
  extended by org.ckkloverdos.reflect.MethodReflectiveAccessor
All Implemented Interfaces:
IReflectiveAccessor

public class MethodReflectiveAccessor
extends java.lang.Object
implements IReflectiveAccessor

A JavaBeans property reflective accessor, based on the defined class method.

Author:
Christos KK Loverdos

Constructor Summary
MethodReflectiveAccessor(java.lang.reflect.Method m)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object get(java.lang.Object clientObject)
          Returns the value of the JavaBeans property for the given clientObject, by calling the underlying method.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodReflectiveAccessor

public MethodReflectiveAccessor(java.lang.reflect.Method m)
Method Detail

get

public java.lang.Object get(java.lang.Object clientObject)
Returns the value of the JavaBeans property for the given clientObject, by calling the underlying method.

Specified by:
get in interface IReflectiveAccessor
Parameters:
clientObject -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 1999-2007 Christos KK Loverdos. All Rights Reserved.