org.tynamo.descriptor
Class ReflectionDescriptorFactory

java.lang.Object
  extended by 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
           
 
Constructor Summary
ReflectionDescriptorFactory(List<DescriptorDecorator> decorators, MethodDescriptorFactory methodDescriptorFactory, PropertyDescriptorFactory propertyDescriptorFactory)
           
 
Method Summary
 TynamoClassDescriptor buildClassDescriptor(Class type)
          Given a type, build a class descriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

ReflectionDescriptorFactory

public ReflectionDescriptorFactory(List<DescriptorDecorator> decorators,
                                   MethodDescriptorFactory methodDescriptorFactory,
                                   PropertyDescriptorFactory propertyDescriptorFactory)
Parameters:
decorators - In the default Tynamo configuration this will contain a HibernateDescriptorDecorator and an AnnotationDecorator
methodDescriptorFactory -
propertyDescriptorFactory -
Method Detail

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.