org.oddjob.oddballs
Class DirectoryOddball
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryOddball
public DirectoryOddball()
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.