examples
Class ExampleProjectListenerPlugin

java.lang.Object
  |
  +--org.sourcejammer.server.plugin.SJServerProjectChangeAdapter
        |
        +--examples.ExampleProjectListenerPlugin
All Implemented Interfaces:
SJServerPlugin, SJServerProjectChangeListener

public class ExampleProjectListenerPlugin
extends SJServerProjectChangeAdapter

Title: $FileName: ExampleProjectListenerPlugin.java$

Version:
$VerNum: 1$
Author:
$AuthorName: Rob MacGrogan$

$Description: Demo for how to create a project change listener.$
$KeyWordsOff: $

Field Summary
 
Fields inherited from class org.sourcejammer.server.plugin.SJServerProjectChangeAdapter
 
Constructor Summary
ExampleProjectListenerPlugin()
           
 
Method Summary
 void initPlugin(java.util.Map params)
          Called after plugin is constructed.
 void projectAdded(SJServerProjectEvent ev)
           
 void projectDeleted(SJServerProjectEvent ev)
           
 void projectMoved(SJServerProjectEvent ev)
           
 void projectRemoved(SJServerProjectEvent ev)
           
 void projectRenamed(SJServerProjectEvent ev)
           
 void projectRestored(SJServerProjectEvent ev)
           
 
Methods inherited from class org.sourcejammer.server.plugin.SJServerProjectChangeAdapter
getParameter, getWorkDirectory, setWorkDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleProjectListenerPlugin

public ExampleProjectListenerPlugin()
Method Detail

initPlugin

public void initPlugin(java.util.Map params)
                throws MissingParamException
Description copied from interface: SJServerPlugin
Called after plugin is constructed. Any params in the config file are passed in as a HashMap of name/value pairs. If a plugin always requires a parameter but it is not included in the map, a MissingParamException will be thrown containing the name of the missing param.

Specified by:
initPlugin in interface SJServerPlugin
Overrides:
initPlugin in class SJServerProjectChangeAdapter
MissingParamException
See Also:
SJServerPlugin.initPlugin(Map)

projectAdded

public void projectAdded(SJServerProjectEvent ev)
Specified by:
projectAdded in interface SJServerProjectChangeListener
Overrides:
projectAdded in class SJServerProjectChangeAdapter
See Also:
SJServerProjectChangeListener.projectAdded(SJServerProjectEvent)

projectDeleted

public void projectDeleted(SJServerProjectEvent ev)
Specified by:
projectDeleted in interface SJServerProjectChangeListener
Overrides:
projectDeleted in class SJServerProjectChangeAdapter
See Also:
SJServerProjectChangeListener.projectDeleted(SJServerProjectEvent)

projectMoved

public void projectMoved(SJServerProjectEvent ev)
Specified by:
projectMoved in interface SJServerProjectChangeListener
Overrides:
projectMoved in class SJServerProjectChangeAdapter
See Also:
SJServerProjectChangeListener.projectMoved(SJServerProjectEvent)

projectRemoved

public void projectRemoved(SJServerProjectEvent ev)
Specified by:
projectRemoved in interface SJServerProjectChangeListener
Overrides:
projectRemoved in class SJServerProjectChangeAdapter
See Also:
SJServerProjectChangeListener.projectRemoved(SJServerProjectEvent)

projectRenamed

public void projectRenamed(SJServerProjectEvent ev)
Specified by:
projectRenamed in interface SJServerProjectChangeListener
Overrides:
projectRenamed in class SJServerProjectChangeAdapter
See Also:
SJServerProjectChangeListener.projectRenamed(SJServerProjectEvent)

projectRestored

public void projectRestored(SJServerProjectEvent ev)
Specified by:
projectRestored in interface SJServerProjectChangeListener
Overrides:
projectRestored in class SJServerProjectChangeAdapter
See Also:
SJServerProjectChangeListener.projectRestored(SJServerProjectEvent)


Copyright 2003 Soucejammer project.