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
This ClassDescriptorResolutionCommand
is used to generate
ClassDescriptor
s from JPA annotated classes.
- Version:
- 2009-05-05
- Author:
- Peter Schmidt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTry to resolve/generate aClassDescriptor
for the given (JPA annotated) type.Methods inherited from class org.castor.cpa.util.classresolution.command.BaseResolutionCommand
addNature, getClassDescriptorResolver, getProperty, hasNature, setClassDescriptorResolver, setProperty
-
Constructor Details
-
ClassResolutionByAnnotations
public ClassResolutionByAnnotations()
-
-
Method Details
-
resolve
Try to resolve/generate aClassDescriptor
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 incompleteClassDescriptor
is returned, which will be finished when leaving the loop again. - See Also:
-