Class ClassResolutionByCDR
java.lang.Object
org.castor.cpa.util.classresolution.command.BaseResolutionCommand
org.castor.cpa.util.classresolution.command.ClassResolutionByCDR
- All Implemented Interfaces:
NatureExtendable,PropertyHolder,ClassDescriptorResolutionCommand
This class tries to resolve a
ClassDescriptor from a package that
contains a JDOConstants.PKG_CDR_LIST_FILE file. This file defines the
mapping between a domain class and its corresponding
ClassDescriptor.- Version:
- 1.2.1
- Author:
- Sebastian Gabmeyer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDescriptors(String packageName) Get all descriptors from the package defined by thepackageNamethat contains theJDOConstants.PKG_CDR_LIST_FILEfile.Resolves atypeto aClassDescriptorby looking for aJDOConstants.PKG_CDR_LIST_FILEfile in the root directory.Methods inherited from class org.castor.cpa.util.classresolution.command.BaseResolutionCommand
addNature, getClassDescriptorResolver, getProperty, hasNature, setClassDescriptorResolver, setProperty
-
Constructor Details
-
ClassResolutionByCDR
public ClassResolutionByCDR()Constructor.
-
-
Method Details
-
resolve
Resolves atypeto aClassDescriptorby looking for aJDOConstants.PKG_CDR_LIST_FILEfile in the root directory.- Parameters:
type- theclassto obtain theClassDescriptorfor.- Returns:
- the
ClassDescriptorif found,nullotherwise.
-
getDescriptors
Get all descriptors from the package defined by thepackageNamethat contains theJDOConstants.PKG_CDR_LIST_FILEfile.- Parameters:
packageName- the package to search descriptors for.- Returns:
- a
Listof descriptors contained in the package.
-