org.tynamo.services
Class DescriptorServiceImpl
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 configdescriptorFactory - In default Tynamo this will be a ReflectionDescriptorFactory- See Also:
DescriptorFactory,
DescriptorDecorator
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-2012. All Rights Reserved.