org.oddjob.oddballs
Class DirectoryOddball

java.lang.Object
  extended by org.oddjob.oddballs.DirectoryOddball
All Implemented Interfaces:
OddballFactory

public class DirectoryOddball
extends Object
implements OddballFactory

An implementation of an OddballFactory that creates an Oddball from a directory.

If the given file is not a directory no Oddball is created.

Author:
rob

Constructor Summary
DirectoryOddball()
           
 
Method Summary
 Oddball createFrom(File file, ClassLoader parentLoader)
          Create an Oddball.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryOddball

public DirectoryOddball()
Method Detail

createFrom

public Oddball createFrom(File file,
                          ClassLoader parentLoader)
Description copied from interface: OddballFactory
Create an Oddball.

Specified by:
createFrom in interface OddballFactory
Parameters:
file - A File that a paticular factory may or may not be able to use.
Returns:
An Oddball or null if the file can't be used by the implementing factory.