Interface IConverterService

All Superinterfaces:
IManagedService
All Known Implementing Classes:
ConverterServiceImpl

public interface IConverterService extends IManagedService
Service for converting a language project to another language project. This service is part of the conversion framework and is responsible for managing the conversion process using a IConverterManager.

This service extends IManagedService, indicating that it can be managed by a management infrastructure.

Usage example:

{@code

 // An example of injecting IConverterService into another component
 public class YourComponent {
     @Inject
     private IConverterService converterService;

     // Your component's logic using the IConverterService
 }

 // Obtain the IConverterService instance through dependency injection
 Injector injector = Guice.createInjector(new ExternalDependenciesModule());
 IConverterService converterService = injector.getInstance(IConverterService.class);

 // Obtain the IConverterManager for a specific project
 IProject project = ...; // Specify the source project
 IConverterManager manager = converterService.getManager(project);

 // Use the manager to perform the conversion
 manager.runConverter();
 </pre>


 @author Artem Iliukhin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The Constant FAMILY_JOB_NAME is common for converter jobs.
  • Method Summary

    Modifier and Type
    Method
    Description
    getManager(@NonNull org.eclipse.core.resources.IProject project)
    Retrieves the IConverterManager associated with the specified project.

    Methods inherited from interface com._1c.g5.wiring.IManagedService

    activate, deactivate
  • Field Details

    • FAMILY_JOB_NAME

      static final String FAMILY_JOB_NAME
      The Constant FAMILY_JOB_NAME is common for converter jobs.
      See Also:
  • Method Details

    • getManager

      @NonNull IConverterManager getManager(@NonNull org.eclipse.core.resources.IProject project)
      Retrieves the IConverterManager associated with the specified project.
      Parameters:
      project - the IProject source project for conversion, cannot be null.
      Returns:
      the IConverterManager for the specified project, cannot be null.