org.rhq.bindings.script
Class RepoScriptSourceProvider

java.lang.Object
  extended by org.rhq.bindings.script.BaseRhqSchemeScriptSourceProvider
      extended by org.rhq.bindings.script.RepoScriptSourceProvider
All Implemented Interfaces:
StandardBindings.RhqFacadeChangeListener, ScriptSourceProvider

public class RepoScriptSourceProvider
extends BaseRhqSchemeScriptSourceProvider
implements StandardBindings.RhqFacadeChangeListener

The implementation of script source provider that is able to locate the script files in the repositories on the RHQ server.

The URI looks like:
rhq://repositories/repositoryName/scriptFile

Author:
Lukas Krejci

Field Summary
 
Fields inherited from class org.rhq.bindings.script.BaseRhqSchemeScriptSourceProvider
SCHEME
 
Constructor Summary
RepoScriptSourceProvider()
           
 
Method Summary
protected  Reader doGetScriptSource(URI scriptUri)
          Implement this method to provide the script source.
 void rhqFacadeChanged(StandardBindings bindings)
           
 
Methods inherited from class org.rhq.bindings.script.BaseRhqSchemeScriptSourceProvider
getScriptSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepoScriptSourceProvider

public RepoScriptSourceProvider()
Method Detail

rhqFacadeChanged

public void rhqFacadeChanged(StandardBindings bindings)
Specified by:
rhqFacadeChanged in interface StandardBindings.RhqFacadeChangeListener

doGetScriptSource

protected Reader doGetScriptSource(URI scriptUri)
Description copied from class: BaseRhqSchemeScriptSourceProvider
Implement this method to provide the script source. The base implementation of the BaseRhqSchemeScriptSourceProvider.getScriptSource(URI) method only checks that the scheme of the URI is "rhq" and that the scheme specific part starts with "//".

Specified by:
doGetScriptSource in class BaseRhqSchemeScriptSourceProvider
Returns:
the reader of the script or null if the script could not be found using the URI
See Also:
BaseRhqSchemeScriptSourceProvider.getScriptSource(URI)


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