|
Griffon 1.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.griffon.cli.support.BuildListenerAdapter
org.codehaus.griffon.cli.support.GriffonBuildEventListener
public class GriffonBuildEventListener extends BuildListenerAdapter
Field Summary | |
---|---|
private static Pattern |
EVENT_NAME_PATTERN
|
private static Logger |
LOG
|
private Binding |
binding
|
private List |
buildListeners
The objects that are listening for build events |
private BuildSettings |
buildSettings
|
private GroovyClassLoader |
classLoader
|
protected Map |
globalEventHooks
|
private Map |
timings
|
Constructor Summary | |
GriffonBuildEventListener(GroovyClassLoader scriptClassLoader, Binding binding, BuildSettings buildSettings)
|
Method Summary | |
---|---|
protected void
|
addGriffonBuildListener(String listenerClassName)
|
protected void
|
addGriffonBuildListener(Class listenerClass)
|
void
|
addGriffonBuildListener(GriffonBuildListener listener)
|
protected File
|
findEventsScript(File dir)
|
void
|
initialize()
|
protected void
|
loadEventHooks(BuildSettings buildSettings)
|
private void
|
loadEventsFromPlugins(Map projectPlugins)
|
void
|
loadEventsScript(File eventScript)
|
protected void
|
loadGriffonBuildListeners()
|
void
|
setClassLoader(GroovyClassLoader classLoader)
|
void
|
setGlobalEventHooks(Map globalEventHooks)
|
void
|
targetFinished(BuildEvent buildEvent)
|
void
|
targetStarted(BuildEvent buildEvent)
|
void
|
triggerEvent(String eventName)
Triggers and event for the given name and binding |
void
|
triggerEvent(String eventName, Object... arguments)
Triggers an event for the given name and arguments |
Methods inherited from class BuildListenerAdapter | |
---|---|
buildFinished, buildStarted, messageLogged, targetFinished, targetStarted, taskFinished, taskStarted |
Field Detail |
---|
private static final Pattern EVENT_NAME_PATTERN
private static final Logger LOG
private Binding binding
private List buildListeners
private BuildSettings buildSettings
private GroovyClassLoader classLoader
protected Map globalEventHooks
private final Map timings
Constructor Detail |
---|
public GriffonBuildEventListener(GroovyClassLoader scriptClassLoader, Binding binding, BuildSettings buildSettings)
Method Detail |
---|
protected void addGriffonBuildListener(String listenerClassName)
protected void addGriffonBuildListener(Class listenerClass)
public void addGriffonBuildListener(GriffonBuildListener listener)
protected File findEventsScript(File dir)
public void initialize()
protected void loadEventHooks(BuildSettings buildSettings)
private void loadEventsFromPlugins(Map projectPlugins)
public void loadEventsScript(File eventScript)
protected void loadGriffonBuildListeners()
public void setClassLoader(GroovyClassLoader classLoader)
public void setGlobalEventHooks(Map globalEventHooks)
public void targetFinished(BuildEvent buildEvent)
public void targetStarted(BuildEvent buildEvent)
public void triggerEvent(String eventName)
eventName
- The name of the event
public void triggerEvent(String eventName, Object... arguments)
eventName
- The name of the eventarguments
- The arguments
Groovy Documentation