aQute.bnd.service.lifecycle
Class LifeCyclePlugin

java.lang.Object
  extended by aQute.bnd.service.lifecycle.LifeCyclePlugin
Direct Known Subclasses:
AntPlugin, EclipsePlugin, GitPlugin, GradlePlugin, MavenPlugin

public abstract class LifeCyclePlugin
extends Object

The base class for a plugin that wants to intercept workspace life cycle events.


Constructor Summary
LifeCyclePlugin()
           
 
Method Summary
 void addedPlugin(Workspace workspace, String name, String alias, Map<String,String> parameters)
           
 String augmentSetup(String setup, String alias, Map<String,String> parameters)
           
 void close(Project project)
           
 void created(Project project)
           
 void delete(Project project)
           
 void init(Workspace ws)
          Called when the plugin is setup.
 void opened(Project project)
           
 void removedPlugin(Workspace workspace, String alias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeCyclePlugin

public LifeCyclePlugin()
Method Detail

init

public void init(Workspace ws)
          throws Exception
Called when the plugin is setup. This plugin will be added to the setup but the workspace is not yet refreshed.

Throws:
Exception

opened

public void opened(Project project)
            throws Exception
Throws:
Exception

close

public void close(Project project)
           throws Exception
Throws:
Exception

created

public void created(Project project)
             throws Exception
Throws:
Exception

delete

public void delete(Project project)
            throws Exception
Throws:
Exception

addedPlugin

public void addedPlugin(Workspace workspace,
                        String name,
                        String alias,
                        Map<String,String> parameters)
                 throws Exception
Throws:
Exception

removedPlugin

public void removedPlugin(Workspace workspace,
                          String alias)
                   throws Exception
Throws:
Exception

augmentSetup

public String augmentSetup(String setup,
                           String alias,
                           Map<String,String> parameters)
                    throws Exception
Throws:
Exception


Copyright © 2014 aQute SARL. All rights reserved.