net.sf.mmm.util.pojo.descriptor.base.accessor
Class AbstractPojoPropertyAccessorProxyAdapter

java.lang.Object
  extended by net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessor
      extended by net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorProxy
          extended by net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorProxyAdapter
All Implemented Interfaces:
PojoPropertyAccessor, PojoAttributeName
Direct Known Subclasses:
AbstractPojoPropertyAccessorProxyAdapterComponentType, PojoPropertyAccessorProxyGetSize

public abstract class AbstractPojoPropertyAccessorProxyAdapter
extends AbstractPojoPropertyAccessorProxy

This is the abstract base implementation of a PojoPropertyAccessor that acts as proxy to a delegate allowing to add new ways to access a property.
E.g. if the delegate is a getter that returns an array or a List then this adapter may expose it as indexed getter or size accessor.

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private  PojoPropertyAccessorNonArg containerGetAccessor
           
private  PojoDescriptorDependencies dependencies
           
 
Constructor Summary
AbstractPojoPropertyAccessorProxyAdapter(PojoDescriptorDependencies dependencies, PojoPropertyAccessorNonArg containerGetAccessor)
          The constructor.
 
Method Summary
protected  PojoPropertyAccessorNonArg getDelegate()
          This method gets the accessor this proxy delegates to.
protected  PojoDescriptorDependencies getDependencies()
           
 
Methods inherited from class net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorProxy
getAccessibleObject, getDeclaringClass, getMode, getModifiers, getName, getPropertyClass, getPropertyType, getReturnClass, getReturnType
 
Methods inherited from class net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessor
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

containerGetAccessor

private final PojoPropertyAccessorNonArg containerGetAccessor
See Also:
getDelegate()

dependencies

private final PojoDescriptorDependencies dependencies
See Also:
getDependencies()
Constructor Detail

AbstractPojoPropertyAccessorProxyAdapter

public AbstractPojoPropertyAccessorProxyAdapter(PojoDescriptorDependencies dependencies,
                                                PojoPropertyAccessorNonArg containerGetAccessor)
The constructor.

Parameters:
dependencies - are the PojoDescriptorDependencies to use.
containerGetAccessor - is the accessor delegate that gets an array, map or collection property.
Method Detail

getDelegate

protected final PojoPropertyAccessorNonArg getDelegate()
This method gets the accessor this proxy delegates to.

Specified by:
getDelegate in class AbstractPojoPropertyAccessorProxy
Returns:
the delegate.

getDependencies

protected PojoDescriptorDependencies getDependencies()
Returns:
the dependencies


Copyright © 2001-2010 mmm-Team. All Rights Reserved.