Interface ServiceFactory<ServiceT,ServiceOptionsT> (2.38.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

Name Description
ServiceT
ServiceOptionsT

Methods

create(ServiceOptionsT serviceOptions)

public abstract ServiceT create(ServiceOptionsT serviceOptions)
Parameter
Name Description
serviceOptions ServiceOptionsT
Returns
Type Description
ServiceT