public class OddballsDescriptorFactory extends Object implements ArooaDescriptorFactory
The Oddball directory structure is:
You can have either a
myball
classes
com
acme
MyStuff.class
lib
someutil.jar
lib
or classes
or both
but you must have something.
Additionally there can be as many META-INF/arooa.xml
resources
on that confirm to the ArooaDescriptorBean
format for defining
element mappings and conversions.
<oddjob id="this"> <job> <oddjob file="${this.args[0]}/test/launch/oddballs-launch.xml"> <descriptorFactory> <oddballs> <files> <files> <list> <file file="${this.args[0]}/test/oddballs/apple"/> <file file="${this.args[0]}/test/oddballs/orange"/> </list> </files> </files> </oddballs> </descriptorFactory> </oddjob> </job> </oddjob>This is equivalent to launching Oddjob with the oddball path option set as in:
java -jar run-oddjob.jar \
-op test/oddballs/apple:test/oddballs/orange \
-f test/launch/oddballs-launch.xml
Or if the test/oddballs
directory only contains these two
directories, then using the oddball directory option:
java -jar run-oddjob.jar \
-ob test/oddballs \
-f test/launch/oddballs-launch.xml
If the apple
and orange
directories were
copied to Oddjob's Oddballs directory they would be loaded by default.Constructor and Description |
---|
OddballsDescriptorFactory() |
OddballsDescriptorFactory(File[] files) |
OddballsDescriptorFactory(File[] files,
OddballFactory oddballFactory) |
Modifier and Type | Method and Description |
---|---|
ArooaDescriptor |
createDescriptor(ClassLoader classLoader)
Create an ArooaDesciptor.
|
File[] |
getFiles() |
OddballFactory |
getOddballFactory() |
void |
setFiles(File[] baseDir) |
void |
setOddballFactory(OddballFactory oddballFactory) |
String |
toString() |
public OddballsDescriptorFactory()
public OddballsDescriptorFactory(File[] files)
public OddballsDescriptorFactory(File[] files, OddballFactory oddballFactory)
public File[] getFiles()
public void setFiles(File[] baseDir)
public OddballFactory getOddballFactory()
public void setOddballFactory(OddballFactory oddballFactory)
public ArooaDescriptor createDescriptor(ClassLoader classLoader)
ArooaDescriptorFactory
createDescriptor
in interface ArooaDescriptorFactory
classLoader
- The classLoader to use.