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
Resolves
ClassDescriptor
s on the file system.- Since:
- 1.2.1
- Author:
- Lukas Lang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTries 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
-
Constructor Details
-
ClassResolutionByFile
public ClassResolutionByFile()Constructor taking a MappingLoader.
-
-
Method Details
-
resolve
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.
-