public abstract class ContextExtensionPoint
extends java.lang.Object
implements hudson.ExtensionPoint
| Constructor and Description |
|---|
ContextExtensionPoint() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<ContextExtensionPoint> |
all()
Returns all registered JobDslContextExtensionPoints.
|
static void |
executeInContext(java.lang.Runnable runnable,
javaposse.jobdsl.dsl.Context context)
Call the
Runnable, which must be a Groovy closure, in the given Context. |
void |
notifyItemCreated(hudson.model.Item item,
DslEnvironment dslEnvironment)
Notifies the ExtensionPoint if an item has been created.
|
void |
notifyItemUpdated(hudson.model.Item item,
DslEnvironment dslEnvironment)
Notifies the ExtensionPoint if an item has been updated.
|
public void notifyItemCreated(hudson.model.Item item,
DslEnvironment dslEnvironment)
item - the newly created itemdslEnvironment - the environment that has been available while creating the itempublic void notifyItemUpdated(hudson.model.Item item,
DslEnvironment dslEnvironment)
item - the updated itemdslEnvironment - the environment that has been available while updating the itempublic static void executeInContext(java.lang.Runnable runnable,
javaposse.jobdsl.dsl.Context context)
Runnable, which must be a Groovy closure, in the given Context.runnable - the Groovy closurecontext - the Context for the Runnablejavaposse.jobdsl.dsl.DslScriptException - if the runnable is not a Groovy closurepublic static hudson.ExtensionList<ContextExtensionPoint> all()