public final class ServiceContextManager extends Object
ServiceContext
. The
behaviour can be adapted, by calling set(ServiceContext)
before accessing any
services.Modifier and Type | Method and Description |
---|---|
static ServiceContext |
getServiceContext()
Ge
ServiceContext . |
static ServiceContext |
set(ServiceContext serviceContextProvider)
Replace the current
ServiceContext in use. |
public static ServiceContext set(ServiceContext serviceContextProvider)
ServiceContext
in use.serviceContextProvider
- the new ServiceContext
, not null.public static ServiceContext getServiceContext()
ServiceContext
. If necessary the ServiceContext
will be laziliy loaded.ServiceContext
used.Copyright © 2014–2015 Apache Software Foundation. All rights reserved.