org.tynamo.descriptor.factories
Class ReflectionDescriptorFactory
java.lang.Object
org.tynamo.descriptor.factories.ReflectionDescriptorFactory
- All Implemented Interfaces:
- DescriptorFactory
public class ReflectionDescriptorFactory
- extends Object
- implements DescriptorFactory
Generate descriptors using reflection on the underlying class.
ReflectionDescriptorFactory.buildClassDescriptor() is the only public method
here.
|
Field Summary |
protected static org.apache.commons.logging.Log |
LOG
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
ReflectionDescriptorFactory
public ReflectionDescriptorFactory(List<DescriptorDecorator> decorators,
MethodDescriptorFactory methodDescriptorFactory,
PropertyDescriptorFactory propertyDescriptorFactory)
- Parameters:
decorators - In the default Tynamo configuration this will contain a HibernateDescriptorDecorator and an TynamoDecoratormethodDescriptorFactory - propertyDescriptorFactory -
buildClassDescriptor
public TynamoClassDescriptor buildClassDescriptor(Class type)
- Given a type, build a class descriptor
- Specified by:
buildClassDescriptor in interface DescriptorFactory
- Parameters:
type - The type to build for
- Returns:
- a completed class descriptor
Copyright © 2004-2012. All Rights Reserved.