Class ClassResolutionByFile
- java.lang.Object
-
- org.castor.cpa.util.classresolution.command.BaseResolutionCommand
-
- org.castor.cpa.util.classresolution.command.ClassResolutionByFile
-
- All Implemented Interfaces:
NatureExtendable,PropertyHolder,ClassDescriptorResolutionCommand
public final class ClassResolutionByFile extends BaseResolutionCommand
ResolvesClassDescriptors on the file system.- Since:
- 1.2.1
- Author:
- Lukas Lang
-
-
Constructor Summary
Constructors Constructor Description ClassResolutionByFile()Constructor taking a MappingLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassDescriptorresolve(java.lang.Class type)Tries to load aClassDescriptorfor the given type from the filesystem by lookup the subpackage specified in "jdo_descriptors" using theClassLoaderof theClassLoaderNature.-
Methods inherited from class org.castor.cpa.util.classresolution.command.BaseResolutionCommand
addNature, getClassDescriptorResolver, getProperty, hasNature, setClassDescriptorResolver, setProperty
-
-
-
-
Method Detail
-
resolve
public ClassDescriptor resolve(java.lang.Class type)
Tries to load aClassDescriptorfor the given type from the filesystem by lookup the subpackage specified in "jdo_descriptors" using theClassLoaderof theClassLoaderNature.- Parameters:
type- to lookup the descriptor for.- Returns:
- an instance of ClassDescriptor if found, null if not.
-
-