hudson.plugins.templateproject
Class ItemListenerImpl
java.lang.Object
hudson.model.listeners.ItemListener
hudson.plugins.templateproject.ItemListenerImpl
- All Implemented Interfaces:
- hudson.ExtensionPoint
@Extension
public class ItemListenerImpl
- extends hudson.model.listeners.ItemListener
This ItemListener implementation will force job using
template for publisher to regenerate the transient actions list.
To do so we use the UpdateTransientProperty property which does not do
anything. This is a bit a hack that relies on the behavior, but
there does not seem to be any better way to force updating projects transients actions.
- Author:
- william.bernardet@gmail.com
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Method Summary |
|
hasBuilder(hudson.model.AbstractProject<?,?> project,
java.lang.Class<T> type)
|
void |
onLoaded()
Let's force the projects using either the ProxyPublisher or the ProxyBuilder
to update their transient actions. |
| Methods inherited from class hudson.model.listeners.ItemListener |
all, fireOnCopied, fireOnCreated, onCopied, onCreated, onDeleted, onRenamed, register |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ItemListenerImpl
public ItemListenerImpl()
onLoaded
public void onLoaded()
- Let's force the projects using either the ProxyPublisher or the ProxyBuilder
to update their transient actions.
- Overrides:
onLoaded in class hudson.model.listeners.ItemListener
hasBuilder
public <T> boolean hasBuilder(hudson.model.AbstractProject<?,?> project,
java.lang.Class<T> type)
Copyright © 2004-2013. All Rights Reserved.