Package aQute.bnd.service.lifecycle
Class LifeCyclePlugin
- java.lang.Object
-
- aQute.bnd.service.lifecycle.LifeCyclePlugin
-
- Direct Known Subclasses:
AntPlugin
,EclipsePlugin
,GitPlugin
,GradlePlugin
,MavenPlugin
public abstract class LifeCyclePlugin extends java.lang.Object
The base class for a plugin that wants to intercept workspace life cycle events.
-
-
Constructor Summary
Constructors Constructor Description LifeCyclePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addedPlugin(Workspace workspace, java.lang.String name, java.lang.String alias, java.util.Map<java.lang.String,java.lang.String> parameters)
java.lang.String
augmentSetup(java.lang.String setup, java.lang.String alias, java.util.Map<java.lang.String,java.lang.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, java.lang.String alias)
-
-
-
Method Detail
-
init
public void init(Workspace ws) throws java.lang.Exception
Called when the plugin is setup. This plugin will be added to the setup but the workspace is not yet refreshed.- Throws:
java.lang.Exception
-
opened
public void opened(Project project) throws java.lang.Exception
- Throws:
java.lang.Exception
-
close
public void close(Project project) throws java.lang.Exception
- Throws:
java.lang.Exception
-
created
public void created(Project project) throws java.lang.Exception
- Throws:
java.lang.Exception
-
delete
public void delete(Project project) throws java.lang.Exception
- Throws:
java.lang.Exception
-
addedPlugin
public void addedPlugin(Workspace workspace, java.lang.String name, java.lang.String alias, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
- Throws:
java.lang.Exception
-
removedPlugin
public void removedPlugin(Workspace workspace, java.lang.String alias) throws java.lang.Exception
- Throws:
java.lang.Exception
-
augmentSetup
public java.lang.String augmentSetup(java.lang.String setup, java.lang.String alias, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-