public static interface ResourceService.Builder
Builder instances can be reused, it is safe to call build()
multiple times to build multiple resource services in series.
Modifier and Type | Method and Description |
---|---|
ResourceService |
build()
Returns a newly created resource service.
|
ResourceService.Builder |
manager(ResourceManager manager)
Sets the resource manager of the built resource service.
|
ResourceService.Builder |
provider(ResourceProvider provider)
Sets the resource provider of the built resource service.
|
ResourceService.Builder provider(ResourceProvider provider)
provider
- the provider, not null
Builder
objectjava.lang.NullPointerException
- if the provider is null
java.lang.IllegalStateException
- if the provider is already setResourceService.Builder manager(ResourceManager manager)
manager
- the provider, not null
Builder
objectjava.lang.NullPointerException
- if the manager is null
java.lang.IllegalStateException
- if the manager is already setResourceService build()