org.tynamo.descriptor.factories
Class ReflectionDescriptorFactory

java.lang.Object
  extended by 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.


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
 

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 TynamoDecorator
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-2013. All Rights Reserved.