ServicesBuilder
class ServicesBuilder
Builds a list of Publication.Service from a collection of service factories.
Provides helpers to manipulate the list of services of a Publication.
Constructors
Link copied to clipboard
constructor(cache: ServiceFactory? = null, content: ServiceFactory? = null, contentProtection: ServiceFactory? = null, cover: ServiceFactory? = null, locator: ServiceFactory? = null, positions: ServiceFactory? = null, search: ServiceFactory? = null)
Properties
Link copied to clipboard
Factory to build a CacheService.
Link copied to clipboard
Factory to build a ContentProtectionService.
Link copied to clipboard
Factory to build a ContentService
Link copied to clipboard
Factory to build a CoverService.
Link copied to clipboard
Factory to build a LocatorService
Link copied to clipboard
Factory to build a PositionsService
Link copied to clipboard
Factory to build a SearchService
Functions
Link copied to clipboard
Builds the actual list of publication services to use in a Publication.
Link copied to clipboard
fun <T : Publication.Service> decorate(serviceType: KClass<T>, transform: (ServiceFactory?) -> ServiceFactory)
Replaces the service factory associated with the given service type with the result of transform.
Link copied to clipboard
Gets the publication service factory for the given service type.
Link copied to clipboard
Sets the publication service factory for the given service type.