|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.trails.descriptor.TrailsDescriptorService
public class TrailsDescriptorService
This class builds and caches IClassDescriptors. Descriptors are build during the init method which is called by Spring during application startup
IClassDescriptor| Field Summary | |
|---|---|
protected java.util.Map<java.lang.Class,IClassDescriptor> |
descriptors
|
protected java.util.List<java.lang.Class> |
types
|
| Constructor Summary | |
|---|---|
TrailsDescriptorService()
|
|
| Method Summary | |
|---|---|
protected IClassDescriptor |
applyDecorators(IClassDescriptor descriptor)
Have the decorators decorate this descriptor todo what are decorators for and/or why would I want to call this menthod? |
protected void |
findChildren(IClassDescriptor iClassDescriptor)
|
java.util.List<IClassDescriptor> |
getAllDescriptors()
|
IClassDescriptor |
getClassDescriptor(java.lang.Class type)
|
java.util.List<DescriptorDecorator> |
getDecorators()
In the default Trails configuration this will contain a HibernateDescriptorDecorator and an AnnotationDecorator |
DescriptorFactory |
getDescriptorFactory()
In default Trails this will be a ReflectionDescriptorFactory |
java.util.List |
getTypes()
In the Trails default configuration this will be set to all classes in the Hibernate config |
void |
init()
For each class in types, a descriptor is built by the DescriptorFactory. |
void |
setDecorators(java.util.List<DescriptorDecorator> decorators)
|
void |
setDescriptorFactory(DescriptorFactory descriptorFactory)
|
void |
setTypes(java.util.List<java.lang.Class> types)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<java.lang.Class> types
protected java.util.Map<java.lang.Class,IClassDescriptor> descriptors
| Constructor Detail |
|---|
public TrailsDescriptorService()
| Method Detail |
|---|
public void init()
throws ognl.OgnlException
ognl.OgnlExceptionDescriptorFactory,
DescriptorDecoratorpublic java.util.List<IClassDescriptor> getAllDescriptors()
getAllDescriptors in interface DescriptorServicepublic IClassDescriptor getClassDescriptor(java.lang.Class type)
getClassDescriptor in interface DescriptorServiceprotected void findChildren(IClassDescriptor iClassDescriptor)
protected IClassDescriptor applyDecorators(IClassDescriptor descriptor)
descriptor -
public java.util.List getTypes()
public void setTypes(java.util.List<java.lang.Class> types)
types - all the classes this service should describepublic java.util.List<DescriptorDecorator> getDecorators()
org.trails.hibernate.HibernateDescriptorDecorator,
AnnotationDecoratorpublic void setDecorators(java.util.List<DescriptorDecorator> decorators)
setDecorators in interface DescriptorServicepublic DescriptorFactory getDescriptorFactory()
ReflectionDescriptorFactorypublic void setDescriptorFactory(DescriptorFactory descriptorFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||