public interface ScriptSourceProvider
Implementations of this interface can be located using the ScriptSourceProviderFactory
if they are registered in META-INF/services.
org.rhq.bindings.StandardScriptPermissions class), make sure to call such actions with
elevated permissions through
AccessController.doPrivileged(java.security.PrivilegedExceptionAction) or any of its
derivatives.
For example JNDI look-ups are not allowed by default for the scripts, so if your provider needs to perform some
JNDI lookups to locate the script to include, you need to wrap any code that does a JNDI look-up as above.| Modifier and Type | Method and Description |
|---|---|
Reader |
getScriptSource(URI location)
Returns the reader of the source of the script specified by given location.
|
Reader getScriptSource(URI location)
location - the location of the scriptCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.