Process Factory
The process factory is used to create RuntimeProcess, which will be associated with Launch.
A process factory is used to override default process (IProcess) creation by the debug plug-in, and can be contributed via plug-in XML. When a new process is created via DebugPlugin.newProcess(..), the launch configuration associated with the specified launch is consulted for a process factory attribute (DebugPlugin.ATTR_PROCESS_FACTORY_ID). If
present, the associated process factory is consulted to create a process for the launch. If not present a default process implementation is created and returned by the debug plug-in.
Following is example plug-in XML that contributes a process factory.
<extension point="org.eclipse.debug.core.processFactories">The attributes are specified as follows:
<processFactory
id="com.example.ExampleIdentifier"
class="com.example.ExampleProcessFactory">
</processFactory>
</extension>
- id - a unique identifier for this extension point
- class - the fully qualified name of a class the implements IProcessFactory

0 Comments:
Post a Comment
<< Home