Package com.e1c.langtool.converter
Interface IConverterService
- All Superinterfaces:
IManagedService
- All Known Implementing Classes:
ConverterServiceImpl
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
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant FAMILY_JOB_NAME is common for converter jobs. -
Method Summary
Modifier and TypeMethodDescription@NonNull IConverterManagergetManager(@NonNull org.eclipse.core.resources.IProject project) Retrieves theIConverterManagerassociated with the specified project.Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
Field Details
-
FAMILY_JOB_NAME
The Constant FAMILY_JOB_NAME is common for converter jobs.- See Also:
-
-
Method Details
-
getManager
Retrieves theIConverterManagerassociated with the specified project.- Parameters:
project- theIProjectsource project for conversion, cannot benull.- Returns:
- the
IConverterManagerfor the specified project, cannot benull.
-