NatureExtendable
, PropertyHolder
, ClassDescriptorResolutionCommand
public class ClassResolutionByCDR extends BaseResolutionCommand
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
.Constructor | Description |
---|---|
ClassResolutionByCDR() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.String,ClassDescriptor> |
getDescriptors(java.lang.String packageName) |
Get all descriptors from the package defined by the
packageName that contains the
JDOConstants.PKG_CDR_LIST_FILE file. |
ClassDescriptor |
resolve(java.lang.Class type) |
Resolves a
type to a ClassDescriptor by looking for
a JDOConstants.PKG_CDR_LIST_FILE file in the root directory. |
addNature, getClassDescriptorResolver, getProperty, hasNature, setClassDescriptorResolver, setProperty
public ClassDescriptor resolve(java.lang.Class type)
type
to a ClassDescriptor
by looking for
a JDOConstants.PKG_CDR_LIST_FILE
file in the root directory.type
- the class
to obtain the
ClassDescriptor
for.ClassDescriptor
if found, null
otherwise.public java.util.Map<java.lang.String,ClassDescriptor> getDescriptors(java.lang.String packageName)
packageName
that contains the
JDOConstants.PKG_CDR_LIST_FILE
file.packageName
- the package to search descriptors for.List
of descriptors contained in the package.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com