public class ContainerRegisterLogger extends Object implements ContainerLifecycleProcessor
| 构造器和说明 |
|---|
ContainerRegisterLogger() |
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable Container<Object> |
whenCreated(ContainerDefinition definition,
Container<Object> container)
Callback when the container is created but still not cached.
|
void |
whenDestroyed(Object target)
Callback when the container is destroyed.
|
ContainerDefinition |
whenRegistered(@Nullable Object old,
ContainerDefinition newDefinition)
Callback before registering container.
|
public ContainerDefinition whenRegistered(@Nullable Object old, ContainerDefinition newDefinition)
Callback before registering container.
If the instance is created through a container, this method will not be called
whenRegistered 在接口中 ContainerLifecycleProcessorold - old container instance or container definitionnewDefinition - new definition of containerContainerManager.registerContainer(cn.crane4j.core.container.ContainerDefinition)public @Nullable Container<Object> whenCreated(ContainerDefinition definition, Container<Object> container)
whenCreated 在接口中 ContainerLifecycleProcessordefinition - definition of container, if create by ContainerProvider, definition is nullcontainer - containerContainerManager.getContainer(java.lang.String)public void whenDestroyed(Object target)
whenDestroyed 在接口中 ContainerLifecycleProcessortarget - container instance or container definitionContainerManager.clear()Copyright © 2024. All rights reserved.