org.tynamo.descriptor
Class ReflectionDescriptorFactory
java.lang.Object
org.tynamo.descriptor.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 AnnotationDecoratormethodDescriptorFactory - 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-2009. All Rights Reserved.