org.exolab.castor.xml.util
Class ClassResolutionByFile

java.lang.Object
  extended by org.exolab.castor.xml.util.BaseResolutionCommand
      extended by org.exolab.castor.xml.util.ClassResolutionByFile
All Implemented Interfaces:
NatureExtendable, PropertyHolder, ClassDescriptorResolutionCommand

public final class ClassResolutionByFile
extends BaseResolutionCommand

Resolves ClassDescriptors on the file system.

Since:
1.2.1
Author:
Lukas Lang

Constructor Summary
ClassResolutionByFile()
          Constructor taking a MappingLoader.
 
Method Summary
 ClassDescriptor resolve(java.lang.Class type)
          Tries to load a ClassDescriptor for the given type from the filesystem by lookup the subpackage specified in using the ClassLoader of the ClassLoaderNature .
 
Methods inherited from class org.exolab.castor.xml.util.BaseResolutionCommand
addNature, getProperty, hasNature, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassResolutionByFile

public ClassResolutionByFile()
Constructor taking a MappingLoader.

Method Detail

resolve

public ClassDescriptor resolve(java.lang.Class type)
Tries to load a ClassDescriptor for the given type from the filesystem by lookup the subpackage specified in using the ClassLoader of the ClassLoaderNature .

Parameters:
type - to lookup the descriptor for.
Returns:
an instance of ClassDescriptor if found, null if not.


Copyright © 2011. All Rights Reserved.