public class ReactorAnalyzerBuilder extends java.lang.Object implements ItemBuilder
This class is the ItemBuilder for the ReactorAnalyzer. It constructs a ReactorAnalyzer when build() is called if and only if at least one IAnalysisTool is available to do the analysis work for the analyzer, otherwise it will return null when build() is called.
The name and type of the Item created by this builder are set as final, static variables on this class. Just something I'm trying out for convenience...
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
name
The name of the ReactorAnalyzer.
|
static ItemType |
type
The type of the Item that this builder will create.
|
item
Constructor and Description |
---|
ReactorAnalyzerBuilder()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnalysisTool(IAnalysisTool tool)
This operation adds an IAnalysisTool to the list of analysis tools that
is available to the ReactorAnalyzer.
|
Item |
build(org.eclipse.core.resources.IProject projectSpace)
(non-Javadoc)
|
java.lang.String |
getItemName()
(non-Javadoc)
|
ItemType |
getItemType()
(non-Javadoc)
|
void |
stop()
This operation is called by the OSGI to close the associated
IAnalysisTools.
|
public static final java.lang.String name
The name of the ReactorAnalyzer.
public static final ItemType type
The type of the Item that this builder will create.
public void addAnalysisTool(IAnalysisTool tool)
This operation adds an IAnalysisTool to the list of analysis tools that is available to the ReactorAnalyzer.
tool
- The IAnalysisTool to add to the set.
public void stop()
This operation is called by the OSGI to close the associated IAnalysisTools.
public java.lang.String getItemName()
getItemName
in interface ItemBuilder
The name
ItemBuilder.getItemName()
public ItemType getItemType()
getItemType
in interface ItemBuilder
The type
ItemBuilder.getItemType()
public Item build(org.eclipse.core.resources.IProject projectSpace)
build
in interface ItemBuilder
projectSpace
- The Eclipse project that the Item should use for storage.
The newly created Item.
ItemBuilder.build(IProject projectSpace)