org.rhq.scripting
Interface ScriptSourceProvider


public interface ScriptSourceProvider

Scripts in RHQ can be stored in various locations or maybe not even in the filesystem. Implementations of this interface can be used to provide the contents of the scripts based on URIs.

Implementations of this interface can be located using the ScriptSourceProviderFactory if they are registered in META-INF/services.

Author:
Lukas Krejci

Method Summary
 Reader getScriptSource(URI location)
          Returns the reader of the source of the script specified by given location.
 

Method Detail

getScriptSource

Reader getScriptSource(URI location)
Returns the reader of the source of the script specified by given location.

Parameters:
location - the location of the script
Returns:
the reader of the script source or null if it could not be found


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.