org.tynamo.services
Class DescriptorServiceImpl

java.lang.Object
  extended by org.tynamo.services.DescriptorServiceImpl
All Implemented Interfaces:
DescriptorService

public class DescriptorServiceImpl
extends Object
implements DescriptorService

This class builds and caches TynamoClassDescriptors. Descriptors are build during application startup.


Constructor Summary
DescriptorServiceImpl(Collection<Class> types, DescriptorFactory descriptorFactory)
          For each class in types, a descriptor is built by the DescriptorFactory.
 
Method Summary
 List<TynamoClassDescriptor> getAllDescriptors()
           
 TynamoClassDescriptor getClassDescriptor(Class type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptorServiceImpl

public DescriptorServiceImpl(Collection<Class> types,
                             DescriptorFactory descriptorFactory)
For each class in types, a descriptor is built by the DescriptorFactory. Next it is decorated by each DescriptorDecorator in turn. Finally it is cached.

Parameters:
types - In the Tynamo default configuration this will be set to all classes in the Hibernate config
descriptorFactory - In default Tynamo this will be a ReflectionDescriptorFactory
See Also:
DescriptorFactory, DescriptorDecorator
Method Detail

getAllDescriptors

public List<TynamoClassDescriptor> getAllDescriptors()
Specified by:
getAllDescriptors in interface DescriptorService

getClassDescriptor

public TynamoClassDescriptor getClassDescriptor(Class type)
Specified by:
getClassDescriptor in interface DescriptorService


Copyright © 2004-2009. All Rights Reserved.