public class ResourceType extends java.lang.Object implements ArooaValue, ArooaSessionAware
This uses Oddjob's internal class path to find the resource which includes all Oddballs. Oddballs will be searched in the order they were loaded.
<variables id='props'> <properties> <resource resource="org/oddjob/AResource.props"/> </properties> </variables>
Modifier and Type | Class and Description |
---|---|
static class |
ResourceType.Conversions |
Constructor and Description |
---|
ResourceType() |
ResourceType(java.lang.String resource) |
Modifier and Type | Method and Description |
---|---|
void |
setArooaSession(ArooaSession session)
Accept the current Arooa Session.
|
void |
setResource(java.lang.String resource)
Set the resource.
|
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
java.net.URL |
toURL() |
public ResourceType()
public ResourceType(java.lang.String resource)
public void setArooaSession(ArooaSession session)
ArooaSessionAware
setArooaSession
in interface ArooaSessionAware
session
- The Arooa Session. Never null.public java.net.URL toURL()
public java.io.InputStream toInputStream() throws java.io.IOException
java.io.IOException
public void setResource(java.lang.String resource)
resource
- The resource.public java.lang.String toString()
toString
in class java.lang.Object