Package org.oddjob.io
Class ResourceType
java.lang.Object
org.oddjob.io.ResourceType
- All Implemented Interfaces:
ArooaValue,ArooaSessionAware
- Author:
- Rob Gordon.
Description
Specify a resource on the class path.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.
Example
Specifiy properties as a resource on the class path.
<variables id='props'>
<properties>
<resource resource="org/oddjob/AResource.props"/>
</properties>
</variables>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetArooaSession(ArooaSession session) Accept the current Arooa Session.voidsetResource(String resource) Set the resource.toString()toURL()
-
Constructor Details
-
ResourceType
public ResourceType() -
ResourceType
-
-
Method Details
-
setArooaSession
Description copied from interface:ArooaSessionAwareAccept the current Arooa Session.- Specified by:
setArooaSessionin interfaceArooaSessionAware- Parameters:
session- The Arooa Session. Never null.
-
toURL
-
toInputStream
- Throws:
IOException
-
setResource
Set the resource.- Parameters:
resource- The resource.
-
toString
-