org.entityfs.support.lang
Class ObjectProxySupport<T>

java.lang.Object
  extended by org.entityfs.support.lang.ObjectProxySupport<T>
Direct Known Subclasses:
AbstractEntityDelegateProxy, AbstractFileSystemDelegateProxy, AbstractReadWriteLockableProxy, ChannelProxy, CreationTimeSetter, EntityLockReentrantLockAdapterImpl, LockAwareRandomAccess, RamSymbolicLinkAdapterFactoryProxy, UidGidEntityOwnershipSetter

public abstract class ObjectProxySupport<T>
extends Object

This is a support object that can be inherited by proxy objects. It delegates calls to the overridden java.lang.Object methods to the proxy object.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-core

Constructor Summary
protected ObjectProxySupport(T proxied)
          Create the object proxy.
 
Method Summary
 boolean equals(Object o)
          Delegate the call to equals to the proxied object.
protected  T getProxied()
          Get the proxied object.
 int hashCode()
          Delegate the call to hashCode to the proxied object.
 String toString()
          Delegate the call to toString to the proxied object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectProxySupport

protected ObjectProxySupport(T proxied)
Create the object proxy.

Parameters:
proxied - The proxied object.
Method Detail

getProxied

protected T getProxied()
Get the proxied object.

Returns:
The proxied object.

equals

public boolean equals(Object o)
Delegate the call to equals to the proxied object.

Overrides:
equals in class Object
Returns:
The result from the proxied object.

hashCode

public int hashCode()
Delegate the call to hashCode to the proxied object.

Overrides:
hashCode in class Object
Returns:
The result from the proxied object.

toString

public String toString()
Delegate the call to toString to the proxied object.

Overrides:
toString in class Object
Returns:
The result from the proxied object.