org.castor.cpa.util.classresolution.nature
Class ClassLoaderNature

java.lang.Object
  extended by org.castor.core.nature.BaseNature
      extended by org.castor.cpa.util.classresolution.nature.ClassLoaderNature
All Implemented Interfaces:
Nature

public final class ClassLoaderNature
extends BaseNature

A ClassLoaderNature provides a ClassLoader.

Since:
1.2.1
Author:
Lukas Lang

Constructor Summary
ClassLoaderNature(PropertyHolder holder)
          Constructor takes the PropertyHolder in use.
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Returns a ClassLoader.
 java.lang.String getId()
          Returns the Nature Id.
 void setClassLoader(java.lang.ClassLoader loader)
          Sets the ClassLoader.
 
Methods inherited from class org.castor.core.nature.BaseNature
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderNature

public ClassLoaderNature(PropertyHolder holder)
Constructor takes the PropertyHolder in use.

Parameters:
holder - PropertyHolder in use.
Method Detail

getId

public java.lang.String getId()
Returns the Nature Id.

Returns:
The fully qualified class name.
See Also:
Nature.getId()

setClassLoader

public void setClassLoader(java.lang.ClassLoader loader)
Sets the ClassLoader.

Parameters:
loader - The ClassLoader to use.

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns a ClassLoader.

Returns:
A ClassLoader or null if not set.


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