org.castor.cpa.util.classresolution.command
Class ClassResolutionByAnnotations
java.lang.Object
org.castor.cpa.util.classresolution.command.BaseResolutionCommand
org.castor.cpa.util.classresolution.command.ClassResolutionByAnnotations
- All Implemented Interfaces:
- NatureExtendable, PropertyHolder, ClassDescriptorResolutionCommand
public class ClassResolutionByAnnotations
- extends BaseResolutionCommand
This ClassDescriptorResolutionCommand is used to generate
ClassDescriptors from JPA annotated classes.
- Version:
- $Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
- Author:
- Peter Schmidt, Werner Guttmann
- See Also:
ClassInfoBuilder,
InfoToDescriptorConverter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassResolutionByAnnotations
public ClassResolutionByAnnotations()
resolve
public ClassDescriptor resolve(Class type)
- Try to resolve/generate a
ClassDescriptor for the given (JPA
annotated) type.
- Parameters:
type - The Java class that needs a descriptor
- Returns:
- Usually a
ClassDescriptor representing the given Class or
null if the given type can not be resolved. When this method is
called recursively (as in bidirectional relations) a reference
to an incomplete ClassDescriptor is returned, which will
be finished when leaving the loop again.
Copyright © 2012. All Rights Reserved.