public class StandardBindings extends HashMap<String,Object>
ScriptContext#ENGINE_SCOPE of the
script engines.
Upon instantiation this class has all the properties initialized with the default values so that a common base is available for all the users of this class. The user is however able to later modify these defaults to provide use-case specific overrides (for example the CLI might want to supply impls that hook into the console to provide interactivity with user in some workflows, which, generically, is not possible in a common case).
*NOTE*: any change in what is exposed to the scripting clients needs to be reflected in the API check configuration in the pom.xml of the corresponding modules, because any class that gets exposed in the script context essentially becomes a public API.
| Modifier and Type | Class and Description |
|---|---|
static interface |
StandardBindings.RhqFacadeChangeListener
A listener interface for objects that need to be aware of the fact that the
RHQ facade associated with the bidings has changed.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
ASSERT |
static String |
EXPORTER |
static String |
PAGE_CONTROL |
static String |
PRETTY |
static String |
PROXY_FACTORY |
static String |
SCRIPT_UTIL |
static String |
SUBJECT |
static String |
UNLIMITED_PC |
| Constructor and Description |
|---|
StandardBindings(PrintWriter output,
RhqFacade rhqFacade) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRhqFacadeChangeListener(StandardBindings.RhqFacadeChangeListener listener) |
RhqFacade |
getAssociatedRhqFacade() |
Map.Entry<String,Exporter> |
getExporter() |
Map<RhqManager,Object> |
getManagers() |
Map.Entry<String,org.rhq.core.domain.util.PageControl> |
getPageControl() |
Map.Entry<String,TabularWriter> |
getPretty() |
Map.Entry<String,ResourceClientFactory> |
getProxyFactory() |
Map.Entry<String,ScriptUtil> |
getScriptUtil() |
Map.Entry<String,org.rhq.core.domain.auth.Subject> |
getSubject() |
Map.Entry<String,org.rhq.core.domain.util.PageControl> |
getUnlimitedPC() |
void |
postInject(ScriptEngine scriptEngine) |
void |
preInject(ScriptEngine scriptEngine) |
void |
removeRhqFacadeChangeListere(StandardBindings.RhqFacadeChangeListener listener) |
void |
setFacade(PrintWriter output,
RhqFacade rhqFacade)
If you want to preserve non-client-dependent bindings when the facade changes, call this as opposed to
constructing new StandardBindings.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic static final String UNLIMITED_PC
public static final String PAGE_CONTROL
public static final String EXPORTER
public static final String SUBJECT
public static final String PRETTY
public static final String SCRIPT_UTIL
public static final String PROXY_FACTORY
public static final String ASSERT
public StandardBindings(PrintWriter output, RhqFacade rhqFacade)
public void setFacade(PrintWriter output, RhqFacade rhqFacade)
public RhqFacade getAssociatedRhqFacade()
public void addRhqFacadeChangeListener(StandardBindings.RhqFacadeChangeListener listener)
public void removeRhqFacadeChangeListere(StandardBindings.RhqFacadeChangeListener listener)
public void preInject(ScriptEngine scriptEngine)
public void postInject(ScriptEngine scriptEngine)
public Map.Entry<String,TabularWriter> getPretty()
public Map.Entry<String,ScriptUtil> getScriptUtil()
public Map.Entry<String,ResourceClientFactory> getProxyFactory()
public Map<RhqManager,Object> getManagers()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.