| Package | Description |
|---|---|
| net.bolbat.kit.ioc |
IoC module.
|
| net.bolbat.kit.ioc.links |
Manager links feature. |
| net.bolbat.kit.ioc.scope |
Scopes definition.
|
| net.bolbat.kit.ioc.services |
Manager services feature. |
| Modifier and Type | Field and Description |
|---|---|
static Scope |
Manager.DEFAULT_SCOPE
Default scope.
|
| Modifier and Type | Method and Description |
|---|---|
static <S extends Service> |
Manager.get(Class<S> service,
Scope... scopes)
Get default module service.
Uses ScopeUtil.scopesToArray(true,scopes) upon resolving. |
<S extends Service> |
ManagerModule.get(Class<S> service,
Scope... scopes)
Get service.
Uses ScopeUtil.scopesToArray(true,scopes) upon resolving. |
static <S extends Service> |
Manager.getFast(Class<S> service,
Scope... scopes)
Get default module service.
Logic the same as for get method but with ManagerRuntimeException instead of ManagerException. |
<S extends Service> |
ManagerModule.getFast(Class<S> service,
Scope... scopes)
Get service.
Logic the same as for get method but with ManagerRuntimeException instead of ManagerException. |
static <S extends Service> |
Manager.isRegistered(Class<S> service,
Scope... scopes)
Is service registered, doesn't initiate warmUp.
|
<S extends Service> |
ManagerModule.isRegistered(Class<S> service,
Scope... scopes)
Is service registered, doesn't initiate warmUp.
|
static <S extends Service> |
Manager.link(Class<S> service,
Scope target)
Make default module link between default and target scope.
|
static <S extends Service> |
Manager.link(Class<S> service,
Scope source,
Scope target)
Make default module link between scopes.
|
static <S extends Service,SF extends ServiceFactory<S>> |
Manager.register(Class<S> service,
Class<SF> factory,
Configuration conf,
Scope... scopes)
Register default module service.
|
static <S extends Service,SF extends ServiceFactory<S>> |
Manager.register(Class<S> service,
Class<SF> factory,
Scope... scopes)
Register default module service.
|
static <S extends Service,SF extends ServiceFactory<S>> |
Manager.register(Class<S> service,
SF factory,
Configuration conf,
Scope... scopes)
Register default module service.
Uses ScopeUtil.scopesToArray(true,scopes) upon registration. |
static <S extends Service,SF extends ServiceFactory<S>> |
Manager.register(Class<S> service,
SF factory,
Scope... scopes)
Register default module service.
Uses ScopeUtil.scopesToArray(true,scopes) upon registration. |
static <S extends Service> |
Manager.register(Class<S> service,
S instance,
Scope... scopes)
Register default module service.
Uses ScopeUtil.scopesToArray(true,scopes) upon registration.PostConstruct will be ignored.PreDestroy will be executed during tearDown. |
static <S extends Service> |
ManagerUtils.resolveKey(Class<S> service,
Scope... scopes)
Resolve service key.
|
static <S extends Service> |
ManagerUtils.resolveKey(Class<S> service,
Scope scope)
Resolve service key.
|
| Modifier and Type | Method and Description |
|---|---|
Scope[] |
LinksRegistryImpl.get(String key) |
Scope[] |
LinksRegistry.get(String key)
Get linked scopes.
|
| Modifier and Type | Method and Description |
|---|---|
<S extends Service> |
LinksRegistryImpl.link(Class<S> service,
Scope target) |
<S extends Service> |
LinksRegistry.link(Class<S> service,
Scope target)
Make link between default and target scope.
|
<S extends Service> |
LinksRegistryImpl.link(Class<S> service,
Scope source,
Scope target) |
<S extends Service> |
LinksRegistry.link(Class<S> service,
Scope source,
Scope target)
Make link between scopes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeScope
Composite scope.
|
class |
CustomScope
Custom
Scope implementation, any custom scope can be represented by this class. |
class |
DistributionScope
Service distribution scope.
|
class |
TypeScope
Service type scope.
|
| Modifier and Type | Method and Description |
|---|---|
Scope[] |
CompositeScope.getScopes() |
static Scope[] |
ScopeUtil.scopesToArray(boolean addDefault,
Scope... scopes)
Utility for converting scopes to array with required validation and aggregation.
All composite scopes would be expanded to flat structure. All duplicated scopes would be skipped. |
| Modifier and Type | Method and Description |
|---|---|
static CompositeScope |
CompositeScope.get(Scope... scopes)
|
static Scope[] |
ScopeUtil.scopesToArray(boolean addDefault,
Scope... scopes)
Utility for converting scopes to array with required validation and aggregation.
All composite scopes would be expanded to flat structure. All duplicated scopes would be skipped. |
static String |
ScopeUtil.scopesToString(Scope... scopes)
Convert scopes array to string representation, it's unique for given scopes, scopes order doesn't matter.
Uses ScopeUtil.scopesToArray(false,scopes) upon preparation. |
| Modifier and Type | Method and Description |
|---|---|
<S extends Service,SF extends ServiceFactory<S>> |
ServicesRegistryImpl.register(Class<S> service,
Class<SF> factory,
Configuration conf,
Scope... scopes) |
<S extends Service,SF extends ServiceFactory<S>> |
ServicesRegistry.register(Class<S> service,
Class<SF> factory,
Configuration conf,
Scope... scopes)
Register service.
|
<S extends Service,SF extends ServiceFactory<S>> |
ServicesRegistryImpl.register(Class<S> service,
Class<SF> factory,
Scope... scopes) |
<S extends Service,SF extends ServiceFactory<S>> |
ServicesRegistry.register(Class<S> service,
Class<SF> factory,
Scope... scopes)
Register service.
|
<S extends Service,SF extends ServiceFactory<S>> |
ServicesRegistryImpl.register(Class<S> service,
SF factory,
Configuration conf,
Scope... scopes) |
<S extends Service,SF extends ServiceFactory<S>> |
ServicesRegistry.register(Class<S> service,
SF factory,
Configuration conf,
Scope... scopes)
Register service.
Uses ScopeUtil.scopesToArray(true,scopes) upon registration. |
<S extends Service,SF extends ServiceFactory<S>> |
ServicesRegistryImpl.register(Class<S> service,
SF factory,
Scope... scopes) |
<S extends Service,SF extends ServiceFactory<S>> |
ServicesRegistry.register(Class<S> service,
SF factory,
Scope... scopes)
Register service.
Uses ScopeUtil.scopesToArray(true,scopes) upon registration. |
<S extends Service> |
ServicesRegistryImpl.register(Class<S> service,
S instance,
Scope... scopes) |
<S extends Service> |
ServicesRegistry.register(Class<S> service,
S instance,
Scope... scopes)
Register service.
Uses ScopeUtil.scopesToArray(true,scopes) upon registration.PostConstruct will be ignored.PreDestroy will be executed during tearDown. |
Copyright © 2013–2019 BB Corp. All rights reserved.