public interface ContainerDefinition
ContainerLifecycleProcessor| 限定符和类型 | 接口和说明 |
|---|---|
static class |
ContainerDefinition.SimpleContainerDefinition
Container definition.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ContainerDefinition.SimpleContainerDefinition |
create(String namespace,
@Nullable String providerName,
@Nullable Supplier<Container<Object>> containerFactory)
Create a simple container definition.
|
default <K> Container<K> |
createContainer()
Create
Container by given factory. |
Supplier<Container<Object>> |
getContainerFactory()
Get container factory.
|
String |
getNamespace()
Get the namespace of container
|
String |
getProviderName()
Get container provider name.
|
boolean |
isLimited()
Whether the container is
LimitedContainer. |
void |
setContainerFactory(Supplier<Container<Object>> factory)
Set container factory.
|
void |
setLimited(boolean limited)
Set whether the container is
LimitedContainer. |
static ContainerDefinition.SimpleContainerDefinition create(String namespace, @Nullable String providerName, @Nullable Supplier<Container<Object>> containerFactory)
namespace - namespaceproviderName - provider namecontainerFactory - container factoryString getNamespace()
String getProviderName()
Supplier<Container<Object>> getContainerFactory()
void setContainerFactory(Supplier<Container<Object>> factory)
factory - factoryboolean isLimited()
LimitedContainer.LimitedContainer, otherwise falsevoid setLimited(boolean limited)
LimitedContainer.limited - true if the container is LimitedContainer, otherwise falseCopyright © 2024. All rights reserved.