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
ResolvesClassDescriptor
s 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 ClassDescriptor
resolve(java.lang.Class type)
Tries to load aClassDescriptor
for the given type from the filesystem by lookup the subpackage specified in "jdo_descriptors" using theClassLoader
of 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 aClassDescriptor
for the given type from the filesystem by lookup the subpackage specified in "jdo_descriptors" using theClassLoader
of theClassLoaderNature
.- Parameters:
type
- to lookup the descriptor for.- Returns:
- an instance of ClassDescriptor if found, null if not.
-
-