public class ScriptedRunnable extends AbstractIdentifiableInitializableComponent implements Runnable, UnmodifiableComponent
| Modifier and Type | Class and Description |
|---|---|
private class |
ScriptedRunnable.RunnableScriptEvaluator
The thing that runs the script.
|
| Modifier and Type | Field and Description |
|---|---|
private Object |
customObject
Custom object for script.
|
private org.slf4j.Logger |
log
The log.
|
private EvaluableScript |
script
What is run.
|
private ScriptedRunnable.RunnableScriptEvaluator |
scriptEvaluator
Evaluator.
|
| Constructor and Description |
|---|
ScriptedRunnable() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize()
This method checks to ensure that the component ID is not null.
|
Object |
getCustomObject()
Return the custom (externally provided) object.
|
EvaluableScript |
getScript()
Gets the script to be evaluated.
|
void |
run() |
void |
setCustomObject(Object object)
Set the custom (externally provided) object.
|
void |
setScript(EvaluableScript matcherScript)
Sets the script to be evaluated.
|
setIdgetIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId@NonnullAfterInit private EvaluableScript script
@NonnullAfterInit private ScriptedRunnable.RunnableScriptEvaluator scriptEvaluator
@Nonnull private final org.slf4j.Logger log
protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractIdentifiedInitializableComponentComponentInitializationException - thrown if there is a problem initializing the component@Nullable public Object getCustomObject()
public void setCustomObject(@Nullable Object object)
object - the custom object@NonnullAfterInit public EvaluableScript getScript()
public void setScript(@Nonnull EvaluableScript matcherScript)
matcherScript - the script to be evaluatedCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.