public class ContainerInstanceLifecycleProcessor extends Object implements ContainerLifecycleProcessor
| 构造器和说明 |
|---|
ContainerInstanceLifecycleProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable Container<Object> |
whenCreated(ContainerDefinition definition,
Container<Object> container)
Callback methods when the container is instantiated based on the
ContainerDefinition. |
void |
whenDestroyed(Object target)
Callback methods when the container comparator is removed from the
ContainerManager. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwhenRegisteredpublic @Nullable Container<Object> whenCreated(ContainerDefinition definition, Container<Object> container)
Callback methods when the container is instantiated based on the ContainerDefinition.
At this stage, you can modify the container's definition information
or perform initialization or other modifications on the created container instance.
whenCreated 在接口中 ContainerLifecycleProcessordefinition - definition of container, if create by ContainerProvider, definition is nullcontainer - containerContainerManager.getContainer(java.lang.String)public void whenDestroyed(Object target)
Callback methods when the container comparator is removed from the ContainerManager.
At this stage, you can perform some final operations
on the container definition or container comparator, such as clearing data caches.
whenDestroyed 在接口中 ContainerLifecycleProcessortarget - container comparator or container definitionContainerManager.clear()Copyright © 2024. All rights reserved.