powered by ASAP

The PAK-Core harbors the core functionality of the PAK-framework. It enables the creation, fetching and execution of Commands. Every component within the core-module, plays a vital part in PAK. This chapter describes the functionality of the ILiteService marker-interface.

1. Basics

ILiteService is a marker-interface, it marks a Service as a LiteService. A LiteService is a class, which provides specific function to/of a specific tool/library. It’s also able to provide/establish connection(-details) to/of tools. The ILiteService interface was created to differentiate between a conventional Service- and a LiteService-implementation. If the usage of @Service is not wanted, or simply too expensive, an ILiteService can be injected, using @LiteService, which provides the option of creating utility-Services. Furthermore, it marks a specific Service as usable for Commands, as other Services are not intended for Commands. Those Services are used by Command implementations, where they will be injected by the framework. Therefore a LiteService needs to registered as a Java Service, using the java.util.ServiceLoader.