|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Interface to the framework core. The framework comprises a set of extensions and code inspectors. An extension is a library made available for other framework components. A code inspector is a tool that performs some kind of source code analysis. A code inspector is a specialized kind of extension.
IExtension,
ICodeInspector| Method Summary | |
ICodeInspector |
getCodeInspector(java.lang.String id)
Returns the descriptor of the registered code inspector with the specified identifier or null if there is no such
code inspector. |
ICodeInspector[] |
getCodeInspectors()
Returns an array of descriptors of all the registered code inspectors. |
IExtension |
getExtension(java.lang.String id)
Returns the descriptor of the registered extension with the specified identifier or null if there is no such extension. |
IExtension[] |
getExtensions()
Returns an array of descriptors of all the registered extensions. |
ILog |
getLog()
Returns the log object for the framework. |
boolean |
init(java.lang.String[] pluginPath,
java.net.URL[] pluginPropPath,
java.lang.ClassLoader[] loaders)
Initializes the framework. |
void |
run(IProject project,
java.util.List analyzers,
JobControl jobControl)
Executes the specified code analyzers. |
void |
shutdown()
Shuts down all the activated plug-ins and saves persistent plug-in data. |
| Method Detail |
public ICodeInspector getCodeInspector(java.lang.String id)
null if there is no such
code inspector.id - the unique identifier of the code inspector.public ICodeInspector[] getCodeInspectors()
public IExtension getExtension(java.lang.String id)
null if there is no such extension.id - the unique identifier of the extension.public IExtension[] getExtensions()
public ILog getLog()
public boolean init(java.lang.String[] pluginPath,
java.net.URL[] pluginPropPath,
java.lang.ClassLoader[] loaders)
The errors that occur during initialization are reported via the log. The return value indicates whether normal framework operation is possible.
pluginPath - specifies a list of URL's from which the plugins
will be loaded, for example /D:/sapient/plugins/audit. If
pluginPath is null, the plugins are loaded from
the default location.pluginPropPath - specifies a list of URL's from which the plugins
properties will be loaded, for example /D:/sapient/plugins/audit.
If pluginPropPath is null, the plugins properties
are loaded from the default location.loaders - a list of class loader to use with the corresponding
plugins.true if the framework initialized successfully,
false if a critical error has occurred.
public void run(IProject project,
java.util.List analyzers,
JobControl jobControl)
project - a set of source files to process.analyzers - a list code analyzer descriptors to execute. Code analyzers
may belong to different inspectors.jobControl - a job control object, or null.public void shutdown()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||