public class OddballsDescriptorFactory extends java.lang.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(java.io.File[] files) |
OddballsDescriptorFactory(java.io.File[] files,
OddballFactory oddballFactory) |
Modifier and Type | Method and Description |
---|---|
ArooaDescriptor |
createDescriptor(java.lang.ClassLoader classLoader)
Create an ArooaDescriptor.
|
java.io.File[] |
getFiles() |
OddballFactory |
getOddballFactory() |
void |
setFiles(java.io.File[] baseDir) |
void |
setOddballFactory(OddballFactory oddballFactory) |
java.lang.String |
toString() |
public OddballsDescriptorFactory()
public OddballsDescriptorFactory(java.io.File[] files)
public OddballsDescriptorFactory(java.io.File[] files, OddballFactory oddballFactory)
public java.io.File[] getFiles()
public void setFiles(java.io.File[] baseDir)
public OddballFactory getOddballFactory()
public void setOddballFactory(OddballFactory oddballFactory)
public ArooaDescriptor createDescriptor(java.lang.ClassLoader classLoader)
ArooaDescriptorFactory
createDescriptor
in interface ArooaDescriptorFactory
classLoader
- The classLoader to use.public java.lang.String toString()
toString
in class java.lang.Object