public class Crane4jApplicationContext extends SimpleConfigurableContainerProvider implements Crane4jGlobalConfiguration, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
The global configuration class implemented based on the Spring context,
when obtaining the required components from the instance,
will directly obtain the corresponding bean through the ApplicationContext held.
ApplicationContextcontainerMap| 构造器和说明 |
|---|
Crane4jApplicationContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet()
Load all
ContainerRegisterAware from spring context. |
void |
afterSingletonsInstantiated()
After Spring initializes all singleton beans,
register all beans that implement the
Container interface with the current context. |
boolean |
containsContainer(String namespace)
Whether the container has been registered.
|
void |
destroy()
Clear container cache on destruction.
|
AssembleOperationHandler |
getAssembleOperationHandler(Class<? extends AssembleOperationHandler> handlerType)
Get assemble operation handler.
|
AssembleOperationHandler |
getAssembleOperationHandler(String handlerName)
Get assemble operation handler.
|
BeanOperationExecutor |
getBeanOperationExecutor(Class<? extends BeanOperationExecutor> executorType)
Get bean operation executor.
|
BeanOperationExecutor |
getBeanOperationExecutor(String executorName)
Get bean operation executor.
|
BeanOperationParser |
getBeanOperationsParser(Class<? extends BeanOperationParser> parserType)
Get bean operation parser.
|
BeanOperationParser |
getBeanOperationsParser(String parserName)
Get bean operation parser.
|
Container<?> |
getContainer(String namespace)
Get data source container.
|
<T extends ContainerProvider> |
getContainerProvider(Class<T> providerType)
Get container provider.
|
ContainerProvider |
getContainerProvider(String providerName)
Get container provider.
|
ConverterManager |
getConverterManager()
Get
ConverterManager |
DisassembleOperationHandler |
getDisassembleOperationHandler(Class<? extends DisassembleOperationHandler> handlerType)
Get disassemble operation handler.
|
DisassembleOperationHandler |
getDisassembleOperationHandler(String handlerName)
Get disassemble operation handler.
|
PropertyOperator |
getPropertyOperator()
Get property operator.
|
TypeResolver |
getTypeResolver()
Get type resolver.
|
addContainerRegisterAware, compute, getContainer, getContainerRegisterAwareList, registerContainerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContainerRegisterAwareListaddContainerRegisterAware, compute, getContainer, registerContainerpublic boolean containsContainer(String namespace)
containsContainer 在接口中 ConfigurableContainerProvidercontainsContainer 在类中 SimpleConfigurableContainerProvidernamespace - namespacepublic Container<?> getContainer(String namespace)
getContainer 在接口中 ContainerProvidergetContainer 在类中 SimpleConfigurableContainerProvidernamespace - namespaceCrane4jException - thrown when the container is not registeredpublic ConverterManager getConverterManager()
ConverterManagergetConverterManager 在接口中 Crane4jGlobalConfigurationConverterManagerpublic PropertyOperator getPropertyOperator()
getPropertyOperator 在接口中 Crane4jGlobalConfigurationpublic TypeResolver getTypeResolver()
getTypeResolver 在接口中 Crane4jGlobalConfigurationpublic <T extends ContainerProvider> T getContainerProvider(Class<T> providerType)
getContainerProvider 在接口中 Crane4jGlobalConfigurationproviderType - provider typepublic ContainerProvider getContainerProvider(String providerName)
getContainerProvider 在接口中 Crane4jGlobalConfigurationproviderName - provider namepublic BeanOperationExecutor getBeanOperationExecutor(Class<? extends BeanOperationExecutor> executorType)
getBeanOperationExecutor 在接口中 Crane4jGlobalConfigurationexecutorType - executor typepublic BeanOperationExecutor getBeanOperationExecutor(String executorName)
getBeanOperationExecutor 在接口中 Crane4jGlobalConfigurationexecutorName - executor namepublic BeanOperationParser getBeanOperationsParser(Class<? extends BeanOperationParser> parserType)
getBeanOperationsParser 在接口中 Crane4jGlobalConfigurationparserType - parser typepublic BeanOperationParser getBeanOperationsParser(String parserName)
getBeanOperationsParser 在接口中 Crane4jGlobalConfigurationparserName - parser namepublic AssembleOperationHandler getAssembleOperationHandler(Class<? extends AssembleOperationHandler> handlerType)
getAssembleOperationHandler 在接口中 Crane4jGlobalConfigurationhandlerType - handler typepublic AssembleOperationHandler getAssembleOperationHandler(String handlerName)
getAssembleOperationHandler 在接口中 Crane4jGlobalConfigurationhandlerName - handler namepublic DisassembleOperationHandler getDisassembleOperationHandler(Class<? extends DisassembleOperationHandler> handlerType)
getDisassembleOperationHandler 在接口中 Crane4jGlobalConfigurationhandlerType - handler typepublic DisassembleOperationHandler getDisassembleOperationHandler(String handlerName)
getDisassembleOperationHandler 在接口中 Crane4jGlobalConfigurationhandlerName - handler namepublic void afterPropertiesSet()
ContainerRegisterAware from spring context.afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanpublic void afterSingletonsInstantiated()
Container interface with the current context.afterSingletonsInstantiated 在接口中 org.springframework.beans.factory.SmartInitializingSingletonpublic void destroy()
destroy 在接口中 org.springframework.beans.factory.DisposableBeanCopyright © 2023. All rights reserved.