public final class Bootstrap extends Object
init(ServiceProvider)
before accessing any monetary
services.Modifier and Type | Method and Description |
---|---|
static <T> T |
getService(Class<T> serviceType)
Delegate method for
ServiceProvider.getServices(Class) . |
static <T> Collection<T> |
getServices(Class<T> serviceType)
Delegate method for
ServiceProvider.getServices(Class) . |
static ServiceProvider |
init(ServiceProvider serviceProvider)
Replace the current
ServiceProvider in use. |
public static ServiceProvider init(ServiceProvider serviceProvider)
ServiceProvider
in use.serviceProvider
- the new ServiceProvider
public static <T> Collection<T> getServices(Class<T> serviceType)
ServiceProvider.getServices(Class)
.serviceType
- the service type.ServiceProvider.getServices(Class)
public static <T> T getService(Class<T> serviceType)
ServiceProvider.getServices(Class)
.serviceType
- the service type.null
.ServiceProvider.getServices(Class)
Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.