Interface ServiceFactory<ServiceT,ServiceOptionsT> (2.22.1)

public interface ServiceFactory<ServiceT,ServiceOptionsT>

A base interface for all service factories.

Implementation must provide a public no-arg constructor. Loading of a factory implementation is done via java.util.ServiceLoader.

Type Parameters

NameDescription
ServiceT
ServiceOptionsT

Methods

create(ServiceOptionsT serviceOptions)

public abstract ServiceT create(ServiceOptionsT serviceOptions)
Parameter
NameDescription
serviceOptionsServiceOptionsT
Returns
TypeDescription
ServiceT