| Modifier and Type | Method and Description |
|---|---|
Features |
features()
Get features configuration.
|
<S extends Service> |
get(Class<S> service,
Scope... scopes)
Get service.
Uses ScopeUtil.scopesToArray(true,scopes) upon resolving. |
<S extends Service> |
getFast(Class<S> service,
Scope... scopes)
Get service.
Logic the same as for get method but with ManagerRuntimeException instead of ManagerException. |
<S extends Service> |
isRegistered(Class<S> service,
Scope... scopes)
Is service registered, doesn't initiate warmUp.
|
LinksRegistry |
links()
Get links configuration.
|
ServicesRegistry |
services()
Get services configuration.
|
void |
tearDown()
Tear down
ManagerModule state.For registered and instantiated services 'pre-destroy' will be processed. |
<S extends Service> |
tearDown(Class<S> service)
Tear down
ManagerModule state for given service.For registered and instantiated services 'pre-destroy' will be processed. |
void |
warmUp()
Warm up
ManagerModule state.For registered and not instantiated services 'post-construct' will be processed. |
<S extends Service> |
warmUp(Class<S> service)
Warm up
ManagerModule state for given service.For registered and not instantiated services 'post-construct' will be processed. |
public ServicesRegistry services()
LinksRegistrypublic LinksRegistry links()
LinksRegistrypublic <S extends Service> S getFast(Class<S> service, Scope... scopes)
get method but with ManagerRuntimeException instead of ManagerException.service - service interfacescopes - service scopes, default scopes will be selected if no one givenpublic <S extends Service> S get(Class<S> service, Scope... scopes) throws ManagerException
ScopeUtil.scopesToArray(true,scopes) upon resolving.service - service interfacescopes - service scopes, default scopes will be selected if no one givenManagerExceptionpublic <S extends Service> boolean isRegistered(Class<S> service, Scope... scopes)
service - service interfacescopes - service scopes, default scopes will be selected if no one giventrue if configured, or falsepublic void warmUp()
ManagerModule state.public <S extends Service> void warmUp(Class<S> service)
ManagerModule state for given service.service - service interfacepublic void tearDown()
ManagerModule state.public <S extends Service> void tearDown(Class<S> service)
ManagerModule state for given service.service - service interfaceCopyright © 2013–2019 BB Corp. All rights reserved.