org.formaria.data.pojo
Class PojoProxyAdapter
java.lang.Object
org.formaria.registry.ComponentAdapter
org.formaria.registry.ReflectionAdapter
org.formaria.data.pojo.PojoAdapter
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PojoProxyAdapter
public PojoProxyAdapter(java.lang.reflect.Proxy proxy,
PojoDataSource ds)
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 signatureprefixes - 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.