ServiceT
- the service subclassServiceOptionsT
- the ServiceOptions
subclass corresponding to the servicepublic interface ServiceFactory<ServiceT extends Service,ServiceOptionsT extends ServiceOptions>
Implementation must provide a public no-arg constructor. Loading of a factory implementation
is done via ServiceLoader
.
Modifier and Type | Method and Description |
---|---|
ServiceT |
create(ServiceOptionsT serviceOptions) |
ServiceT create(ServiceOptionsT serviceOptions)
Copyright © 2019 Google LLC. All rights reserved.