org.castor.cpa.util.classresolution.command
Class ClassResolutionByFile

java.lang.Object
  extended by org.castor.cpa.util.classresolution.command.BaseResolutionCommand
      extended by org.castor.cpa.util.classresolution.command.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.castor.cpa.util.classresolution.command.BaseResolutionCommand
addNature, getClassDescriptorResolver, getProperty, hasNature, setClassDescriptorResolver, 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.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com