org.formaria.data.pojo
Class PojoProxyAdapter

java.lang.Object
  extended by org.formaria.registry.ComponentAdapter
      extended by org.formaria.registry.ReflectionAdapter
          extended by org.formaria.data.pojo.PojoAdapter
              extended by org.formaria.data.pojo.PojoProxyAdapter

public class PojoProxyAdapter
extends PojoAdapter

An adapter for POJO's mapping the Aria model's use of the beans, including customizations specified by the datasource configuration to the interface provided by the POJO.

Copyright (c) Formaria Ltd., 2008
License: see license.txt


Field Summary
 
Fields inherited from class org.formaria.data.pojo.PojoAdapter
dataSource, GETTER_PREFIXES, SETTER_PREFIXES, transientProperties
 
Fields inherited from class org.formaria.registry.ComponentAdapter
className, clazz, getters, setters, UI
 
Constructor Summary
PojoProxyAdapter(java.lang.reflect.Proxy proxy, PojoDataSource ds)
           
 
Method Summary
protected  java.lang.reflect.Method findFirstMethod(java.lang.String propertyName, java.lang.Class[] argTypes, java.lang.String[] prefixes)
          Gets the first method whose name matches any of the specified method names and its argument types match the specified types.
 
Methods inherited from class org.formaria.data.pojo.PojoAdapter
customizeProperty, getGetter, getId, getSetter, getSetter, getSetter, invoke, isTransient, setTransient
 
Methods inherited from class org.formaria.registry.ReflectionAdapter
addProperty, getProperty, setProperty
 
Methods inherited from class org.formaria.registry.ComponentAdapter
addProperty, getAdapterClass, getAdapterClassName, getUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoProxyAdapter

public PojoProxyAdapter(java.lang.reflect.Proxy proxy,
                        PojoDataSource ds)
Method Detail

findFirstMethod

protected java.lang.reflect.Method findFirstMethod(java.lang.String propertyName,
                                                   java.lang.Class[] argTypes,
                                                   java.lang.String[] prefixes)
Gets the first method whose name matches any of the specified method names and its argument types match the specified types. The requested method is being retrieved by reflection.

Overrides:
findFirstMethod in class PojoAdapter
Parameters:
propertyName - the name of the property from which the method name is constructed.
argTyeps - the types of the method arguments, the signature
prefixes - the table containing strings with which the name of the requested method must start.
Returns:
the matching method or null if no method was found.